client_status_report: Change variable names
This commit is contained in:
parent
2ebcc49465
commit
d064487550
|
@ -97,11 +97,11 @@ private:
|
|||
void reportStorageServers() {
|
||||
json_spirit::mArray storageServerArr;
|
||||
for (const auto& [ssid, serverInfo] : cx.server_interf) {
|
||||
json_spirit::mObject serverDescr;
|
||||
serverDescr["SSID"] = ssid.toString();
|
||||
serverDescr["Address"] = serverInfo->interf.address().toString();
|
||||
json_spirit::mObject serverDesc;
|
||||
serverDesc["SSID"] = ssid.toString();
|
||||
serverDesc["Address"] = serverInfo->interf.address().toString();
|
||||
serverAddresses.insert(serverInfo->interf.address());
|
||||
storageServerArr.push_back(serverDescr);
|
||||
storageServerArr.push_back(serverDesc);
|
||||
}
|
||||
statusObj["StorageServers"] = storageServerArr;
|
||||
}
|
||||
|
|
|
@ -2356,7 +2356,7 @@ void MultiVersionDatabase::DatabaseState::close() {
|
|||
|
||||
namespace {
|
||||
|
||||
const char* inializationStateToString(MultiVersionDatabase::InitializationState initState) {
|
||||
const char* initializationStateToString(MultiVersionDatabase::InitializationState initState) {
|
||||
switch (initState) {
|
||||
case MultiVersionDatabase::InitializationState::INITIALIZING:
|
||||
return "initializing";
|
||||
|
@ -2379,7 +2379,7 @@ const char* inializationStateToString(MultiVersionDatabase::InitializationState
|
|||
Standalone<StringRef> MultiVersionDatabase::DatabaseState::getClientStatus(
|
||||
ErrorOr<Standalone<StringRef>> dbContextStatus) {
|
||||
json_spirit::mObject statusObj;
|
||||
statusObj["InitializationState"] = inializationStateToString(initializationState);
|
||||
statusObj["InitializationState"] = initializationStateToString(initializationState);
|
||||
if (initializationState == InitializationState::INITIALIZATION_FAILED) {
|
||||
statusObj["InitializationError"] = initializationError.code();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue