mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-13 12:58:17 +03:00
F #4809: Start/Stop zone replication threads when adding/deleting zones
This commit is contained in:
parent
9c0e7c8023
commit
2f5a3185df
@ -980,6 +980,8 @@ Request::ErrorCode ZoneAllocate::pool_allocate(
|
||||
return Request::INTERNAL;
|
||||
}
|
||||
|
||||
Nebula::instance().get_frm()->add_zone(id);
|
||||
|
||||
return Request::SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -395,6 +395,8 @@ int ZoneDelete::drop(PoolObjectSQL * object, bool recursive,
|
||||
aclm->del_zid_rules(oid);
|
||||
}
|
||||
|
||||
Nebula::instance().get_frm()->delete_zone(oid);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user