From 3877c35068ab9853894c61d8828e55380c3ceebf Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Fri, 10 Sep 2021 11:00:07 -0400 Subject: [PATCH] rgw: sync checkpoint gets num_shards from remote bilog info Signed-off-by: Adam C. Emerson --- src/rgw/rgw_sync_checkpoint.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_sync_checkpoint.cc b/src/rgw/rgw_sync_checkpoint.cc index c9d350e73efe1..b07cec1a05a00 100644 --- a/src/rgw/rgw_sync_checkpoint.cc +++ b/src/rgw/rgw_sync_checkpoint.cc @@ -88,8 +88,8 @@ int bucket_source_sync_checkpoint(const DoutPrefixProvider* dpp, ceph::timespan retry_delay, ceph::coarse_mono_time timeout_at) { - const auto num_shards = source_bucket_info.layout.current_index.layout.normal.num_shards; + const int num_shards = remote_markers.get().size(); rgw_bucket_sync_status full_status; int r = rgw_read_bucket_full_sync_status(dpp, store, pipe, &full_status, null_yield); if (r < 0 && r != -ENOENT) { // retry on ENOENT -- 2.39.5