mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-03 03:41:53 +08:00
fix metacluster get segfault (#9693)
This commit is contained in:
parent
18a0fa0263
commit
6c337e5c7a
@ -418,7 +418,7 @@ ACTOR Future<bool> metaclusterListCommand(Reference<IDatabase> db, std::vector<S
|
||||
|
||||
// metacluster get command
|
||||
ACTOR Future<bool> metaclusterGetCommand(Reference<IDatabase> db, std::vector<StringRef> tokens) {
|
||||
if (tokens.size() > 4 || (tokens.size() == 4 && tokens[3] != "JSON"_sr)) {
|
||||
if (tokens.size() > 4 || tokens.size() < 3 || (tokens.size() == 4 && tokens[3] != "JSON"_sr)) {
|
||||
fmt::print("Usage: metacluster get <NAME> [JSON]\n\n");
|
||||
fmt::print("Prints metadata associated with the given data cluster.\n");
|
||||
fmt::print("If JSON is specified, then the output will be in JSON format.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user