diff options
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_oplog_applier_test.cpp')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_oplog_applier_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/resharding/resharding_oplog_applier_test.cpp b/src/mongo/db/s/resharding/resharding_oplog_applier_test.cpp index 0d798bef5e5..8aa9b79b458 100644 --- a/src/mongo/db/s/resharding/resharding_oplog_applier_test.cpp +++ b/src/mongo/db/s/resharding/resharding_oplog_applier_test.cpp @@ -155,7 +155,8 @@ public: _cm = createChunkManagerForOriginalColl(); _metrics = std::make_unique<ReshardingMetrics>(getServiceContext()); - _metrics->onStart(getServiceContext()->getFastClockSource()->now()); + _metrics->onStart(ReshardingMetrics::Role::kRecipient, + getServiceContext()->getFastClockSource()->now()); _metrics->setRecipientState(RecipientStateEnum::kApplying); } @@ -256,8 +257,7 @@ public: long long metricsAppliedCount() const { BSONObjBuilder bob; - _metrics->serializeCurrentOpMetrics(&bob, - ReshardingMetrics::ReporterOptions::Role::kRecipient); + _metrics->serializeCurrentOpMetrics(&bob, ReshardingMetrics::Role::kRecipient); return bob.obj()["oplogEntriesApplied"_sd].Long(); } |