Cherry-pick the initialization fix in pr#5291

This commit is contained in:
Chaoguang Lin 2021-08-27 12:42:30 -07:00
parent 991d61923f
commit 555bb70663
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ ACTOR Future<bool> profileCommandActor(Reference<ITransaction> tr, std::vector<S
fprintf(stderr, "ERROR: Usage: profile client <get|set>\n"); fprintf(stderr, "ERROR: Usage: profile client <get|set>\n");
return false; return false;
} }
wait(GlobalConfig::globalConfig().onInitialized());
if (tokencmp(tokens[2], "get")) { if (tokencmp(tokens[2], "get")) {
if (tokens.size() != 3) { if (tokens.size() != 3) {
fprintf(stderr, "ERROR: Addtional arguments to `get` are not supported.\n"); fprintf(stderr, "ERROR: Addtional arguments to `get` are not supported.\n");