From 298b94a04440be97ff958612ff692a9638e80979 Mon Sep 17 00:00:00 2001 From: Chaoguang Lin Date: Tue, 19 May 2020 20:51:02 -0700 Subject: [PATCH] clang-format the change --- fdbclient/SystemData.cpp | 4 ++-- fdbserver/DataDistributionTracker.actor.cpp | 2 +- fdbserver/workloads/DataDistributionMetrics.actor.cpp | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fdbclient/SystemData.cpp b/fdbclient/SystemData.cpp index 7340b0815f..451768ce9d 100644 --- a/fdbclient/SystemData.cpp +++ b/fdbclient/SystemData.cpp @@ -203,8 +203,8 @@ const KeyRangeRef writeConflictRangeKeysRange = KeyRangeRef(LiteralStringRef("\xff\xff/transaction/write_conflict_range/"), LiteralStringRef("\xff\xff/transaction/write_conflict_range/\xff\xff")); -const KeyRangeRef ddStatsRange = - KeyRangeRef(LiteralStringRef("\xff\xff/metrics/data_distribution_stats/"), LiteralStringRef("\xff\xff/metrics/data_distribution_stats/\xff\xff")); +const KeyRangeRef ddStatsRange = KeyRangeRef(LiteralStringRef("\xff\xff/metrics/data_distribution_stats/"), + LiteralStringRef("\xff\xff/metrics/data_distribution_stats/\xff\xff")); // "\xff/storageCache/[[begin]]" := "[[vector]]" const KeyRangeRef storageCacheKeys( LiteralStringRef("\xff/storageCache/"), LiteralStringRef("\xff/storageCache0") ); diff --git a/fdbserver/DataDistributionTracker.actor.cpp b/fdbserver/DataDistributionTracker.actor.cpp index 3f93a35cf1..01d2a34ab9 100644 --- a/fdbserver/DataDistributionTracker.actor.cpp +++ b/fdbserver/DataDistributionTracker.actor.cpp @@ -822,7 +822,7 @@ ACTOR Future fetchShardMetricsList_impl( DataDistributionTracker* self, Ge // list of metrics, regenerate on loop when full range unsuccessful Standalone> result; Future onChange; - for( auto t : self->shards.containedRanges( req.keys ) ) { + for (auto t : self->shards.containedRanges(req.keys)) { auto &stats = t.value().stats; if( !stats->get().present() ) { onChange = stats->onChange(); diff --git a/fdbserver/workloads/DataDistributionMetrics.actor.cpp b/fdbserver/workloads/DataDistributionMetrics.actor.cpp index 8120512a1a..9e6aa01cf6 100644 --- a/fdbserver/workloads/DataDistributionMetrics.actor.cpp +++ b/fdbserver/workloads/DataDistributionMetrics.actor.cpp @@ -85,7 +85,8 @@ struct DataDistributionMetricsWorkload : KVWorkload { state int idx = deterministicRandom()->randomInt(0, result.size()); Standalone res = wait(tr->getRange( KeyRangeRef(result[idx].key, idx + 1 < result.size() ? result[idx + 1].key : normalKeys.end), 100)); - ASSERT(res.size() == 1 && res[0] == result[idx]); // If the data distribtion stats is not changing, then this is fine + ASSERT(res.size() == 1 && + res[0] == result[idx]); // If the data distribtion stats is not changing, then this is fine } catch (Error& e) { TraceEvent(SevError, "FailedToRetrieveDDMetrics").detail("Error", e.what()); return false;