mirror of
https://github.com/ceph/ceph
synced 2024-12-29 06:52:35 +00:00
Merge pull request #54903 from cbodley/wip-63829
radosgw-admin: 'zone set' won't overwrite existing default-placement Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
This commit is contained in:
commit
fe747f40fa
@ -1035,10 +1035,12 @@ int create_zone(const DoutPrefixProvider* dpp, optional_yield y,
|
||||
}
|
||||
|
||||
// add default placement with empty pool name
|
||||
RGWZonePlacementInfo placement;
|
||||
rgw_pool pool;
|
||||
auto& placement = info.placement_pools["default-placement"];
|
||||
placement.storage_classes.set_storage_class(
|
||||
RGW_STORAGE_CLASS_STANDARD, &pool, nullptr);
|
||||
// don't overwrite if it already exists
|
||||
info.placement_pools.emplace("default-placement", std::move(placement));
|
||||
|
||||
// build a set of all pool names used by other zones
|
||||
std::set<rgw_pool> pools;
|
||||
|
Loading…
Reference in New Issue
Block a user