enable the background dynamic resharding thread based on
RGWSI_Zone::can_reshard(), which takes the zonegroup features into
account
Fixes: https://tracker.ceph.com/issues/52877
Signed-off-by: Casey Bodley <cbodley@redhat.com>
reshard = new RGWReshard(this->store);
- /* only the master zone in the zonegroup reshards buckets */
- run_reshard_thread = run_reshard_thread && (zonegroup.master_zone == zone.id);
+ // disable reshard thread based on zone/zonegroup support
+ run_reshard_thread = run_reshard_thread && svc.zone->can_reshard();
+
if (run_reshard_thread) {
reshard->start_processor();
}