format code; special key space notice update

This commit is contained in:
Xiaoxi Wang 2022-03-03 15:38:28 -08:00
parent dbeee1dcd0
commit 01c347d45c
2 changed files with 2 additions and 10 deletions

View File

@ -133,10 +133,10 @@ ACTOR Future<bool> dataDistributionCommandActor(Reference<IDatabase> db, std::ve
printf("Data distribution is enabled for rebalance.\n");
} else if (tokencmp(tokens[2], "rebalance_disk")) {
wait(setDDIgnoreRebalanceSwitch(db, ~DDIgnore::REBALANCE_DISK));
printf("Data distribution is disabled for rebalance_disk.\n");
printf("Data distribution is enabled for rebalance_disk.\n");
} else if (tokencmp(tokens[2], "rebalance_read")) {
wait(setDDIgnoreRebalanceSwitch(db, ~DDIgnore::REBALANCE_READ));
printf("Data distribution is disabled for rebalance_read.\n");
printf("Data distribution is enabled for rebalance_read.\n");
} else {
printf(usage);
result = false;

View File

@ -2461,14 +2461,6 @@ Future<Optional<std::string>> DataDistributionImpl::commit(ReadYourWritesTransac
val = ""_sr;
}
ryw->getTransaction().set(rebalanceDDIgnoreKey, iter->value().second.get());
// if (iter->value().second.get().size())
// msg =
// ManagementAPIError::toJsonString(false,
// "datadistribution",
// "Value is unused for the
// data_distribution/rebalance_ignored " "key, please set it
// to an empty value"); else ryw->getTransaction().set(rebalanceDDIgnoreKey,
//LiteralStringRef("on"));
} else {
msg = ManagementAPIError::toJsonString(
false,