]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: enable RGWReshard thread on any zone that supports it
authorCasey Bodley <cbodley@redhat.com>
Tue, 12 Oct 2021 16:45:29 +0000 (12:45 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 1 Feb 2022 22:52:56 +0000 (17:52 -0500)
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>
src/rgw/rgw_rados.cc

index 6f32902e6119338b3c100f15d1a428a1a01b1941..0c072d869ced46ee441becb84e97bb78e7af7685 100644 (file)
@@ -1367,8 +1367,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();
   }