resolved some fmt issues

This commit is contained in:
He Liu 2021-09-20 11:58:30 -07:00
parent b2afa6e2f5
commit 95f64f97de
2 changed files with 5 additions and 5 deletions

View File

@ -273,9 +273,9 @@ std::pair<vector<std::pair<UID, NetworkAddress>>, vector<std::pair<UID, NetworkA
return std::make_pair(logs, oldLogs);
}
const KeyRef serverKeysPrefix = LiteralStringRef("\xff/serverKeys/");
const ValueRef serverKeysTrue = LiteralStringRef("1"), // compatible with what was serverKeysTrue
serverKeysTrueEmptyRange = LiteralStringRef("3"), // the server treats the range as empty.
const KeyRef serverKeysPrefix ="\xff/serverKeys/"_sr;
const ValueRef serverKeysTrue = "1"_sr, // compatible with what was serverKeysTrue
serverKeysTrueEmptyRange ="3"_sr, // the server treats the range as empty.
serverKeysFalse;
const Key serverKeysKey(UID serverID, const KeyRef& key) {

View File

@ -238,13 +238,13 @@ ACTOR Future<vector<UID>> addReadWriteDestinations(KeyRangeRef shard,
// Returns storage servers selected from 'candidates', who is serving a read-write copy of 'range'.
ACTOR Future<std::vector<UID>> pickReadWriteServers(Transaction* tr, std::vector<UID> candidates, KeyRangeRef range) {
vector<Future<Optional<Value>>> serverListEntries;
std::vector<Future<Optional<Value>>> serverListEntries;
for (const UID id : candidates) {
serverListEntries.push_back(tr->get(serverListKeyFor(id)));
}
vector<Optional<Value>> serverListValues = wait(getAll(serverListEntries));
std::vector<Optional<Value>> serverListValues = wait(getAll(serverListEntries));
std::vector<StorageServerInterface> ssis;
for (auto& v : serverListValues) {