summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding/resharding_metrics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_metrics.h')
-rw-r--r--src/mongo/db/s/resharding/resharding_metrics.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/s/resharding/resharding_metrics.h b/src/mongo/db/s/resharding/resharding_metrics.h
index a6964c9d611..d60eea1177b 100644
--- a/src/mongo/db/s/resharding/resharding_metrics.h
+++ b/src/mongo/db/s/resharding/resharding_metrics.h
@@ -40,11 +40,14 @@
#include "mongo/s/resharding/common_types_gen.h"
#include "mongo/util/clock_source.h"
#include "mongo/util/duration.h"
-#include "mongo/util/histogram.h"
#include "mongo/util/uuid.h"
namespace mongo {
+static const size_t kLatencyHistogramBucketsCount = 5;
+static const std::array<int64_t, kLatencyHistogramBucketsCount> latencyHistogramBuckets = {
+ 0, 11, 101, 1001, 10001};
+
/*
* Maintains the metrics for resharding operations.
* All members of this class are thread-safe.
@@ -171,10 +174,6 @@ public:
// Reports the estimated remaining time for the active resharding operation, or `boost::none`.
boost::optional<Milliseconds> getOperationRemainingTime() const;
- static Histogram<int64_t> getLatencyHistogram() {
- return Histogram<int64_t>({10, 100, 1000, 10000});
- }
-
private:
class OperationMetrics;