diff --git a/fdbcli/fdbcli.actor.cpp b/fdbcli/fdbcli.actor.cpp index e89776efc5..a8abf0c321 100644 --- a/fdbcli/fdbcli.actor.cpp +++ b/fdbcli/fdbcli.actor.cpp @@ -1100,9 +1100,9 @@ void printStatus(StatusObjectReader statusObj, 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();