Add the new messages to Schema.

This commit is contained in:
Balachandar Namasivayam 2019-07-15 13:47:27 -07:00
parent 4a99bd2961
commit 9169232fa9
3 changed files with 7 additions and 3 deletions

View File

@ -322,7 +322,9 @@
"storage_servers_error",
"status_incomplete",
"layer_status_incomplete",
"database_availability_timeout"
"database_availability_timeout",
"consistencycheck_suspendkey_fetch_timeout",
"consistencycheck_disabled"
]
},
"issues":[

View File

@ -346,7 +346,9 @@ const KeyRef JSONSchemas::statusSchema = LiteralStringRef(R"statusSchema(
"storage_servers_error",
"status_incomplete",
"layer_status_incomplete",
"database_availability_timeout"
"database_availability_timeout",
"consistencycheck_suspendkey_fetch_timeout",
"consistencycheck_disabled"
]
},
"issues":[

View File

@ -1055,7 +1055,7 @@ ACTOR static Future<Void> consistencyCheckStatusFetcher(Database cx, JsonBuilder
break;
} catch(Error &e) {
if(e.code() == error_code_timed_out) {
messages->push_back(JsonString::makeMessage("consistencycheck_fetch_timeout",
messages->push_back(JsonString::makeMessage("consistencycheck_suspendkey_fetch_timeout",
format("Timed out trying to fetch `%s` from the database.", fdbShouldConsistencyCheckBeSuspended.toString().c_str()).c_str()));
break;
}