summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
diff options
context:
space:
mode:
authormathisbessamdb <mathis.bessa@mongodb.com>2023-05-16 19:16:55 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-17 00:07:45 +0000
commitf686154c7dcab57316dba532f06d41201fba6b82 (patch)
treeccc75de1cce3a082db63575eab66f4c7483f1bbb /src/mongo/db/ttl.cpp
parentf8937c0ae6a1b6afd3d0e4e4dae2afca53cf7390 (diff)
downloadmongo-f686154c7dcab57316dba532f06d41201fba6b82.tar.gz
SERVER-76900 ResourceConsumption::shouldCollectMetricsForDatabase to pass a DatabaseName
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);