]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: RGWCollectBucketSyncStatusCR doesn't need the shard count 43196/head
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 10 Sep 2021 16:28:28 +0000 (12:28 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 17 Sep 2021 17:31:14 +0000 (13:31 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_data_sync.cc

index 8b339a5a6f849eb0930399e30d8bd1274d20c3d7..5e85a0eebabed2811c1d1405b66d9756b694f91d 100644 (file)
@@ -5727,7 +5727,9 @@ class RGWCollectBucketSyncStatusCR : public RGWShardCollectCR {
       store(store), sc(sc), env(sc->env), gen(gen),
       i(status->begin()), end(status->end())
   {
-    sync_pair.source_bs = rgw_bucket_shard(source_bucket_info.bucket, source_bucket_info.layout.current_index.layout.normal.num_shards > 0 ? 0 : -1);
+    // This function doesn't need to know the remote shard count, but
+    // callers of read_bucket_inc_sync_status do
+    sync_pair.source_bs = rgw_bucket_shard(source_bucket_info.bucket, 0);
     sync_pair.dest_bucket = dest_bucket_info.bucket;
   }