diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2023-05-16 22:56:39 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 01:53:41 +0000 |
commit | 068c90d91fd45305bd6ee3b6f9172700516aaa85 (patch) | |
tree | d52005120ed2da87e7c65d5feee6d95980599773 /src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp | |
parent | 17ecec00ebe6f1bbb5f78bb94021292789dd5a35 (diff) | |
download | mongo-068c90d91fd45305bd6ee3b6f9172700516aaa85.tar.gz |
SERVER-76918 Change bucket_catalog::clear to take in DatabaseName object instead of StringData object
Diffstat (limited to 'src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp')
-rw-r--r-- | src/mongo/db/timeseries/bucket_catalog/bucket_catalog.cpp | 7 |
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, |