summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/global_index_metrics.h
diff options
context:
space:
mode:
authorBrett Nawrocki <brett.nawrocki@mongodb.com>2022-03-11 22:01:13 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-25 22:40:30 +0000
commit0da839803f3bd512208a2a888eaf35c6bfb3bd37 (patch)
treeba5f7be5ddb973cfdfb801143faee35e26bd2a43 /src/mongo/db/s/global_index_metrics.h
parentab7ffadb7f0a242842a31b2f12d49b4c2e97d242 (diff)
downloadmongo-0da839803f3bd512208a2a888eaf35c6bfb3bd37.tar.gz
SERVER-63634 ReshardingMetricsNew restores common metadata metrics
ReshardingMetricsNew will now restore after a failover the following metrics from the ReshardingService state documents: desc ns op originatingCommand {donor, recipient, coordinator}State totalOperationTimeElapsedSecs type
Diffstat (limited to 'src/mongo/db/s/global_index_metrics.h')
-rw-r--r--src/mongo/db/s/global_index_metrics.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/s/global_index_metrics.h b/src/mongo/db/s/global_index_metrics.h
index e34a1f24a83..2fdb2984a09 100644
--- a/src/mongo/db/s/global_index_metrics.h
+++ b/src/mongo/db/s/global_index_metrics.h
@@ -39,11 +39,12 @@ namespace mongo {
class GlobalIndexMetrics : public ShardingDataTransformInstanceMetrics {
public:
- GlobalIndexMetrics(UUID uuid,
+ GlobalIndexMetrics(UUID instanceId,
+ BSONObj originatingCommand,
NamespaceString nss,
Role role,
- BSONObj keyPattern,
- bool unique,
+ Date_t startTime,
+ ClockSource* clockSource,
ShardingDataTransformCumulativeMetrics* cumulativeMetrics);
static std::unique_ptr<GlobalIndexMetrics> makeInstance(UUID uuid,