summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r--src/mongo/db/ttl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp
index b2a94b47ad1..918d9962500 100644
--- a/src/mongo/db/ttl.cpp
+++ b/src/mongo/db/ttl.cpp
@@ -589,7 +589,7 @@ bool TTLMonitor::_doTTLIndexDelete(OperationContext* opCtx,
return false;
}
- ResourceConsumption::ScopedMetricsCollector scopedMetrics(opCtx, nss->db().toString());
+ ResourceConsumption::ScopedMetricsCollector scopedMetrics(opCtx, nss->dbName());
if (info.isClustered()) {
return _deleteExpiredWithCollscan(opCtx, ttlCollectionCache, coll);