From: Yehuda Sadeh Date: Fri, 15 Jul 2022 19:57:53 +0000 (-0400) Subject: rgw: bucket sync: fetch source bucket info X-Git-Tag: v18.0.0~431^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e9f60f132c12adb1e5903bfc3fa6a433ceefdf1;p=ceph.git rgw: bucket sync: fetch source bucket info Fixes: https://tracker.ceph.com/issues/56576 Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index ecc7a9596ae8..4a6d59ef5a4c 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -5162,7 +5162,7 @@ int RGWSyncBucketCR::operate(const DoutPrefixProvider *dpp) if (bucket_status.state != BucketSyncState::Incremental || bucket_stopped) { // if state is Init or Stopped, we query the remote RGW for ther state - yield call(new RGWReadRemoteBucketIndexLogInfoCR(sc, sync_pair.dest_bucket, &info)); + yield call(new RGWReadRemoteBucketIndexLogInfoCR(sc, sync_pair.source_bs.bucket, &info)); if (retcode < 0) { return set_cr_error(retcode); }