summaryrefslogtreecommitdiff
path: root/src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp')
-rw-r--r--src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp b/src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp
index 6ee28976dea..f9729b5e232 100644
--- a/src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp
+++ b/src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp
@@ -407,10 +407,9 @@ void clear(BucketCatalog& catalog, const NamespaceString& ns) {
clear(catalog, [ns](const NamespaceString& bucketNs) { return bucketNs == ns; });
}
-void clear(BucketCatalog& catalog, StringData dbName) {
- clear(catalog, [dbName = dbName.toString()](const NamespaceString& bucketNs) {
- return bucketNs.db() == dbName;
- });
+void clear(BucketCatalog& catalog, const DatabaseName& dbName) {
+ clear(catalog,
+ [dbName](const NamespaceString& bucketNs) { return bucketNs.dbName() == dbName; });
}
void appendExecutionStats(const BucketCatalog& catalog,