From: Casey Bodley Date: Tue, 12 Oct 2021 16:45:29 +0000 (-0400) Subject: rgw: enable RGWReshard thread on any zone that supports it X-Git-Tag: v18.0.0~787^2~65 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=60ecef0c8a8209d8928158dd928a5ee301860d09;p=ceph.git rgw: enable RGWReshard thread on any zone that supports it 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 --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 7e27c1e67f5..5623f589242 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1337,8 +1337,9 @@ int RGWRados::init_complete(const DoutPrefixProvider *dpp) 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(); }