]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/archive: Correct the bucket sync status cmd output
authorSoumya Koduri <skoduri@redhat.com>
Mon, 20 Mar 2023 12:15:33 +0000 (17:45 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Tue, 23 May 2023 17:04:10 +0000 (22:34 +0530)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit d7af6c228253d05a16dd3be993f150518f1b6f66)

src/rgw/rgw_admin.cc

index 2d09388ebbb416b12471c916fca6ecdb932a08b2..6aaac0a0951b876ece708717f37b2526ecad235a 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;
   }