]> git-server-git.apps.pok.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>
Fri, 21 Jun 2024 17:58:44 +0000 (23:28 +0530)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit d7af6c228253d05a16dd3be993f150518f1b6f66)
(cherry picked from commit ede6e61a65e2618477315a7fc37a50ccfda65391)

src/rgw/rgw_admin.cc

index 5461b6aee0b725fc06171936ac1e6b6493ed5fc0..5cbb22786fc7cbe3099485f33cc3d6e14d767444 100644 (file)
@@ -2491,7 +2491,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 (!store->svc()->zone->zone_syncs_from(zone, source)) {
     out << indented{width} << "does not sync from zone\n";
     return 0;
   }