From: Soumya Koduri Date: Mon, 20 Mar 2023 12:15:33 +0000 (+0530) Subject: rgw/archive: Correct the bucket sync status cmd output X-Git-Tag: v18.1.0~8^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ede6e61a65e2618477315a7fc37a50ccfda65391;p=ceph-ci.git rgw/archive: Correct the bucket sync status cmd output Signed-off-by: Soumya Koduri (cherry picked from commit d7af6c228253d05a16dd3be993f150518f1b6f66) --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 2d09388ebbb..6aaac0a0951 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -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; }