From cd19a9b61af72acc69e93f3e39af3f4bf21961ff Mon Sep 17 00:00:00 2001 From: "A.J. Beamon" Date: Mon, 1 Mar 2021 14:50:27 -0800 Subject: [PATCH] Fix bug where regions reported extra satellites --- fdbcli/fdbcli.actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdbcli/fdbcli.actor.cpp b/fdbcli/fdbcli.actor.cpp index f34534f7b3..896c3cfd12 100644 --- a/fdbcli/fdbcli.actor.cpp +++ b/fdbcli/fdbcli.actor.cpp @@ -1025,9 +1025,9 @@ void printStatus(StatusObjectReader statusObj, StatusClient::StatusLevel level, outputString += "\n Regions: "; regions = statusObjConfig["regions"].get_array(); bool isPrimary = false; - std::vector regionSatelliteDCs; std::string regionDC; for (StatusObjectReader region : regions) { + std::vector regionSatelliteDCs; for (StatusObjectReader dc : region["datacenters"].get_array()) { if (!dc.has("satellite")) { regionDC = dc["id"].get_str();