fix format, make the call interruptable

This commit is contained in:
Chaoguang Lin 2021-05-20 23:29:22 +00:00
parent 9b228fd4db
commit 455046de5f
2 changed files with 2 additions and 2 deletions

View File

@ -164,4 +164,4 @@ CommandFactory maintenanceFactory(
"SECONDS have elapsed, or after a storage server with a different ZONEID fails. Only one ZONEID can be marked "
"for maintenance. Calling this command with no arguments will display any ongoing maintenance. Calling this "
"command with `off' will disable maintenance.\n"));
} // namespace fdb_cli
} // namespace fdb_cli

View File

@ -3763,7 +3763,7 @@ ACTOR Future<int> cli(CLIOptions opt, LineNoise* plinenoise) {
if (tokencmp(tokens[0], "consistencycheck")) {
getTransaction(db, tr, tr2, options, intrans);
bool _result = wait(consistencyCheckCommandActor(tr2, tokens));
bool _result = wait(makeInterruptable(consistencyCheckCommandActor(tr2, tokens)));
if (!_result)
is_error = true;
continue;