summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/bucketdbmetricupdatertest.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-02-02 11:56:26 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2024-02-02 13:11:07 +0000
commitbe0ba3bac9cb28e34d2f9476422c23d37a4772fd (patch)
tree705c07bccf7cc8f112a71d74edc789a31379e064 /storage/src/tests/distributor/bucketdbmetricupdatertest.cpp
parent6a611fed8a1ed5824956702b9e86b3e7719140b9 (diff)
- Always inhibit_default_merges_when_global_merges_pending
- Only show config to the code that needs it. - Avoid using config autogenerated internals around in the code.
Diffstat (limited to 'storage/src/tests/distributor/bucketdbmetricupdatertest.cpp')
-rw-r--r--storage/src/tests/distributor/bucketdbmetricupdatertest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/storage/src/tests/distributor/bucketdbmetricupdatertest.cpp b/storage/src/tests/distributor/bucketdbmetricupdatertest.cpp
index 58b4d5d0146..638c7698f02 100644
--- a/storage/src/tests/distributor/bucketdbmetricupdatertest.cpp
+++ b/storage/src/tests/distributor/bucketdbmetricupdatertest.cpp
@@ -316,8 +316,7 @@ TEST_F(BucketDBMetricUpdaterTest, min_bucket_replica_tracked_and_reported_per_no
TEST_F(BucketDBMetricUpdaterTest, non_trusted_replicas_also_counted_in_mode_any) {
BucketDBMetricUpdater metricUpdater;
- using CountingMode = BucketDBMetricUpdater::ReplicaCountingMode;
- metricUpdater.setMinimumReplicaCountingMode(CountingMode::ANY);
+ metricUpdater.setMinimumReplicaCountingMode(ReplicaCountingMode::ANY);
visitBucketWith2Copies1Trusted(metricUpdater);
visitBucketWith2CopiesBothTrusted(metricUpdater);
@@ -327,8 +326,7 @@ TEST_F(BucketDBMetricUpdaterTest, non_trusted_replicas_also_counted_in_mode_any)
TEST_F(BucketDBMetricUpdaterTest, minimum_replica_count_returned_for_node_in_mode_any) {
BucketDBMetricUpdater metricUpdater;
- using CountingMode = BucketDBMetricUpdater::ReplicaCountingMode;
- metricUpdater.setMinimumReplicaCountingMode(CountingMode::ANY);
+ metricUpdater.setMinimumReplicaCountingMode(ReplicaCountingMode::ANY);
visitBucketWith2CopiesBothTrusted(metricUpdater);
visitBucketWith1Copy(metricUpdater);