From d7af6c228253d05a16dd3be993f150518f1b6f66 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Mon, 20 Mar 2023 17:45:33 +0530 Subject: [PATCH] rgw/archive: Correct the bucket sync status cmd output Signed-off-by: Soumya Koduri --- src/rgw/rgw_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index f8a68fa0d3005..228e165647f50 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; } -- 2.39.5