diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index af00d1980ce96..4cb6c5815f7ef 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1302,6 +1302,10 @@ int RGWPeriod::update() return ret; } + // clear zone short ids of removed zones. period_map.update() will add the + // remaining zones back + period_map.short_zone_ids.clear(); + for (auto& iter : zonegroups) { RGWZoneGroup zg(string(), iter); ret = zg.init(cct, store);