summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2023-04-24 15:46:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-24 17:10:29 +0000
commitfc7d81d0f3cad9978bf69097b2a9dc3bbe3a0026 (patch)
treee736e2bf16d0a80d4b052abf9214b20858caed9e /src/mongo/db/storage
parent9bdae80d0e77cd0c582185df528e4c356ebfa9bd (diff)
downloadmongo-fc7d81d0f3cad9978bf69097b2a9dc3bbe3a0026.tar.gz
SERVER-76396 Refactor special database constant handling
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r--src/mongo/db/storage/durable_catalog_impl.cpp4
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/storage/durable_catalog_impl.cpp b/src/mongo/db/storage/durable_catalog_impl.cpp
index a94471106c0..148cb461321 100644
--- a/src/mongo/db/storage/durable_catalog_impl.cpp
+++ b/src/mongo/db/storage/durable_catalog_impl.cpp
@@ -631,8 +631,8 @@ StatusWith<std::string> DurableCatalogImpl::newOrphanedIdent(
// The collection will be named local.orphan.xxxxx.
std::string identNs = ident;
std::replace(identNs.begin(), identNs.end(), '-', '_');
- NamespaceString nss(NamespaceString(NamespaceString::kOrphanCollectionDb,
- NamespaceString::kOrphanCollectionPrefix + identNs));
+ NamespaceString nss{DatabaseName::kLocal.db(),
+ NamespaceString::kOrphanCollectionPrefix + identNs};
BSONObj obj;
{
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
index 212b6dda382..c3999d0e07e 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
@@ -969,7 +969,7 @@ bool WiredTigerUtil::useTableLogging(const NamespaceString& nss) {
invariant(nss.size() > 0);
// Of the replica set configurations:
- if (!nss.isLocal()) {
+ if (!nss.isLocalDB()) {
// All replicated collections are not logged.
return false;
}