fdbcli: show status if blob granules is enabled (#7784)

This commit is contained in:
Hui Liu 2022-08-03 17:15:34 -07:00 committed by GitHub
parent da1ffebcb0
commit 4f75f01882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -433,7 +433,15 @@ void printStatus(StatusObjectReader statusObj,
} else
outputString += "unknown";
int intVal;
int intVal = 0;
bool blobGranuleEnabled{ false };
if (statusObjConfig.get("blob_granules_enabled", intVal) && intVal) {
blobGranuleEnabled = true;
}
if (blobGranuleEnabled) {
outputString += "\n Blob granules - enabled";
}
outputString += "\n Coordinators - ";
if (statusObjConfig.get("coordinators_count", intVal)) {
outputString += std::to_string(intVal);