Update the file/function name to follow normal case naming as consistencyCheck*
This commit is contained in:
parent
36067e9685
commit
302dd7d54d
|
@ -1,7 +1,7 @@
|
|||
set(FDBCLI_SRCS
|
||||
fdbcli.h
|
||||
fdbcli.actor.cpp
|
||||
ConsistencycheckCommand.actor.cpp
|
||||
ConsistencyCheckCommand.actor.cpp
|
||||
FlowLineNoise.actor.cpp
|
||||
FlowLineNoise.h
|
||||
Util.cpp
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
using namespace fdb_cli;
|
||||
|
||||
ACTOR static Future<bool> consistencycheckCommandActor(Reference<ITransaction> tr, std::vector<StringRef> tokens) {
|
||||
ACTOR static Future<bool> consistencyCheckCommandActor(Reference<ITransaction> tr, std::vector<StringRef> tokens) {
|
||||
tr->setOption(FDBTransactionOptions::SPECIAL_KEY_SPACE_ENABLE_WRITES);
|
||||
if (tokens.size() == 1) {
|
||||
Optional<Value> suspended = wait(safeThreadFutureToFuture(tr->get(consistencyCheckSpeicalKey)));
|
||||
|
@ -32,11 +32,11 @@ namespace fdb_cli {
|
|||
|
||||
const KeyRef consistencyCheckSpeicalKey = LiteralStringRef("\xff\xff/management/consistency_check_suspended");
|
||||
|
||||
Future<bool> consistencycheckCommand(Reference<ITransaction> tr, std::vector<StringRef> tokens) {
|
||||
return consistencycheckCommandActor(tr, tokens);
|
||||
Future<bool> consistencyCheckCommand(Reference<ITransaction> tr, std::vector<StringRef> tokens) {
|
||||
return consistencyCheckCommandActor(tr, tokens);
|
||||
}
|
||||
|
||||
CommandFactory consistencycheckFactory(
|
||||
CommandFactory consistencyCheckFactory(
|
||||
"consistencycheck",
|
||||
CommandHelp(
|
||||
"consistencycheck [on|off]",
|
||||
|
|
|
@ -3814,7 +3814,7 @@ ACTOR Future<int> cli(CLIOptions opt, LineNoise* plinenoise) {
|
|||
|
||||
if (tokencmp(tokens[0], "consistencycheck")) {
|
||||
getTransaction(db, tr, tr2, options, intrans);
|
||||
bool _result = wait(consistencycheckCommand(tr2, tokens));
|
||||
bool _result = wait(consistencyCheckCommand(tr2, tokens));
|
||||
is_error = !_result;
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ void printUsage(StringRef command);
|
|||
|
||||
// All fdbcli commands (alphabetically)
|
||||
// consistency command
|
||||
Future<bool> consistencycheckCommand(Reference<ITransaction> tr, std::vector<StringRef> tokens);
|
||||
Future<bool> consistencyCheckCommand(Reference<ITransaction> tr, std::vector<StringRef> tokens);
|
||||
|
||||
} // namespace fdb_cli
|
||||
|
||||
|
|
Loading…
Reference in New Issue