resolved some fmt issues
This commit is contained in:
parent
b2afa6e2f5
commit
95f64f97de
|
@ -273,9 +273,9 @@ std::pair<vector<std::pair<UID, NetworkAddress>>, vector<std::pair<UID, NetworkA
|
||||||
return std::make_pair(logs, oldLogs);
|
return std::make_pair(logs, oldLogs);
|
||||||
}
|
}
|
||||||
|
|
||||||
const KeyRef serverKeysPrefix = LiteralStringRef("\xff/serverKeys/");
|
const KeyRef serverKeysPrefix ="\xff/serverKeys/"_sr;
|
||||||
const ValueRef serverKeysTrue = LiteralStringRef("1"), // compatible with what was serverKeysTrue
|
const ValueRef serverKeysTrue = "1"_sr, // compatible with what was serverKeysTrue
|
||||||
serverKeysTrueEmptyRange = LiteralStringRef("3"), // the server treats the range as empty.
|
serverKeysTrueEmptyRange ="3"_sr, // the server treats the range as empty.
|
||||||
serverKeysFalse;
|
serverKeysFalse;
|
||||||
|
|
||||||
const Key serverKeysKey(UID serverID, const KeyRef& key) {
|
const Key serverKeysKey(UID serverID, const KeyRef& key) {
|
||||||
|
|
|
@ -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'.
|
// 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) {
|
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) {
|
for (const UID id : candidates) {
|
||||||
serverListEntries.push_back(tr->get(serverListKeyFor(id)));
|
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;
|
std::vector<StorageServerInterface> ssis;
|
||||||
for (auto& v : serverListValues) {
|
for (auto& v : serverListValues) {
|
||||||
|
|
Loading…
Reference in New Issue