summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator_mongod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_builds_coordinator_mongod.cpp')
-rw-r--r--src/mongo/db/index_builds_coordinator_mongod.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.cpp b/src/mongo/db/index_builds_coordinator_mongod.cpp
index 5a5773b1877..082045fd17d 100644
--- a/src/mongo/db/index_builds_coordinator_mongod.cpp
+++ b/src/mongo/db/index_builds_coordinator_mongod.cpp
@@ -467,9 +467,9 @@ IndexBuildsCoordinatorMongod::_startIndexBuild(OperationContext* opCtx,
// Start collecting metrics for the index build. The metrics for this operation will only be
// aggregated globally if the node commits or aborts while it is primary.
auto& metricsCollector = ResourceConsumption::MetricsCollector::get(opCtx.get());
- if (ResourceConsumption::shouldCollectMetricsForDatabase(dbName.toStringWithTenantId()) &&
+ if (ResourceConsumption::shouldCollectMetricsForDatabase(dbName) &&
ResourceConsumption::isMetricsCollectionEnabled()) {
- metricsCollector.beginScopedCollecting(opCtx.get(), dbName.toStringWithTenantId());
+ metricsCollector.beginScopedCollecting(opCtx.get(), dbName);
}
// Index builds should never take the PBWM lock, even on a primary. This allows the