]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: bucket sync: fetch source bucket info 47120/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 15 Jul 2022 19:57:53 +0000 (15:57 -0400)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 15 Jul 2022 19:57:53 +0000 (15:57 -0400)
Fixes: https://tracker.ceph.com/issues/56576
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_data_sync.cc

index ecc7a9596ae82d128d54246c61a8dc69c9c3c031..4a6d59ef5a4cffd186c84e2c0cc2056e1df8e7e3 100644 (file)
@@ -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);
         }