Revert "Apply clang format"

This reverts commit 11b8be6f3d.
This commit is contained in:
Junhyun Shim 2022-08-23 19:12:57 +02:00
parent 11b8be6f3d
commit c21d8830a2
6 changed files with 9 additions and 27 deletions

View File

@ -2096,9 +2096,7 @@ struct KeyValueGen {
return StringRef(ar, value);
}
KeyRef randomUsedKey() const {
return usedKeysList[deterministicRandom()->randomInt(0, usedKeysList.size())];
}
KeyRef randomUsedKey() const { return usedKeysList[deterministicRandom()->randomInt(0, usedKeysList.size())]; }
KeyRange randomKeyRange() const {
ASSERT(!usedKeysList.empty());

View File

@ -1423,9 +1423,7 @@ ACTOR Future<Void> reevaluateInitialSplit(Reference<BlobWorkerData> bwData,
// wait for manager stream to become ready, and send a message
loop {
choose {
when(wait(bwData->currentManagerStatusStream.get().onReady())) {
break;
}
when(wait(bwData->currentManagerStatusStream.get().onReady())) { break; }
when(wait(bwData->currentManagerStatusStream.onChange())) {}
}
}

View File

@ -2582,9 +2582,7 @@ ACTOR Future<Void> dataDistributionQueue(Database cx,
debug_setCheckRelocationDuration(false);
}
}
when(KeyRange done = waitNext(rangesComplete.getFuture())) {
keysToLaunchFrom = done;
}
when(KeyRange done = waitNext(rangesComplete.getFuture())) { keysToLaunchFrom = done; }
when(wait(recordMetrics)) {
Promise<int64_t> req;
getAverageShardBytes.send(req);
@ -2656,9 +2654,7 @@ TEST_CASE("/DataDistribution/DDQueue/ServerCounterTrace") {
std::cout << "Start trace counter unit test for " << duration << "s ...\n";
loop choose {
when(wait(counterFuture)) {}
when(wait(finishFuture)) {
break;
}
when(wait(finishFuture)) { break; }
when(wait(delayJittered(2.0))) {
std::vector<UID> team(3);
for (int i = 0; i < team.size(); ++i) {

View File

@ -1023,9 +1023,7 @@ ACTOR Future<Void> fetchShardMetricsList_impl(DataDistributionTracker* self, Get
ACTOR Future<Void> fetchShardMetricsList(DataDistributionTracker* self, GetMetricsListRequest req) {
choose {
when(wait(fetchShardMetricsList_impl(self, req))) {}
when(wait(delay(SERVER_KNOBS->DD_SHARD_METRICS_TIMEOUT))) {
req.reply.sendError(timed_out());
}
when(wait(delay(SERVER_KNOBS->DD_SHARD_METRICS_TIMEOUT))) { req.reply.sendError(timed_out()); }
}
return Void();
}
@ -1061,9 +1059,7 @@ ACTOR Future<Void> dataDistributionTracker(Reference<InitialDataDistribution> in
initData = Reference<InitialDataDistribution>();
loop choose {
when(Promise<int64_t> req = waitNext(getAverageShardBytes)) {
req.send(self.getAverageShardBytes());
}
when(Promise<int64_t> req = waitNext(getAverageShardBytes)) { req.send(self.getAverageShardBytes()); }
when(wait(loggingTrigger)) {
TraceEvent("DDTrackerStats", self.distributorId)
.detail("Shards", self.shards->size())

View File

@ -423,9 +423,7 @@ ACTOR Future<Void> globalConfigRequestServer(GrvProxyData* grvProxyData, GrvProx
Void()) &&
delay(SERVER_KNOBS->GLOBAL_CONFIG_REFRESH_INTERVAL);
}
when(wait(actors.getResult())) {
ASSERT(false);
}
when(wait(actors.getResult())) { ASSERT(false); }
}
}
}

View File

@ -50,12 +50,8 @@ constexpr uint64_t futureProtocolVersionValue = 0x0FDB00B073000000LL;
struct x { \
static constexpr uint64_t protocolVersion = v; \
}; \
constexpr bool has##x() const { \
return this->version() >= x ::protocolVersion; \
} \
static constexpr ProtocolVersion with##x() { \
return ProtocolVersion(x ::protocolVersion); \
}
constexpr bool has##x() const { return this->version() >= x ::protocolVersion; } \
static constexpr ProtocolVersion with##x() { return ProtocolVersion(x ::protocolVersion); }
// ProtocolVersion wraps a uint64_t to make it type safe. It will know about the current versions.
// The default constructor will initialize the version to 0 (which is an invalid