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: v17.2.8~247^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=036ad9ebd2f9af923868b299f09beb704db0de32;p=ceph.git rgw/archive: Correct the bucket sync status cmd output Signed-off-by: Soumya Koduri (cherry picked from commit d7af6c228253d05a16dd3be993f150518f1b6f66) (cherry picked from commit ede6e61a65e2618477315a7fc37a50ccfda65391) --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 5461b6aee0b..5cbb22786fc 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -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; }