]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/archive: Correct the bucket sync status cmd output 50676/head
authorSoumya Koduri <skoduri@redhat.com>
Mon, 20 Mar 2023 12:15:33 +0000 (17:45 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Tue, 2 May 2023 16:26:10 +0000 (21:56 +0530)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/rgw_admin.cc

index f8a68fa0d30059a1a401b6f06ad1cfaab3dcdadc..228e165647f508697061a1b6e819a53166ce9122 100644 (file)
@@ -2509,7 +2509,7 @@ static int bucket_source_sync_status(const DoutPrefixProvider *dpp, rgw::sal::Ra
   out << indented{width, "source zone"} << source.id << " (" << source.name << ")" << std::endl;
 
   // syncing from this zone?
-  if (!zone.syncs_from(source.name)) {
+  if (!driver->svc()->zone->zone_syncs_from(zone, source)) {
     out << indented{width} << "does not sync from zone\n";
     return 0;
   }