summaryrefslogtreecommitdiff
path: root/src/mongo/db/startup_recovery.cpp
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-07-11 17:40:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-11 18:57:30 +0000
commit3f5e02a10ad19d4694c82d93e4a4e3a0b36c0fb1 (patch)
tree02e3b8029d4e89c24a6f3ba94840da992e55e290 /src/mongo/db/startup_recovery.cpp
parent735e3f711ae28979811d4dcb2d35aeba6ffa460c (diff)
downloadmongo-3f5e02a10ad19d4694c82d93e4a4e3a0b36c0fb1.tar.gz
SERVER-63650 Change Locker::isDbLockedForMode to take in DatabaseName
Diffstat (limited to 'src/mongo/db/startup_recovery.cpp')
-rw-r--r--src/mongo/db/startup_recovery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/startup_recovery.cpp b/src/mongo/db/startup_recovery.cpp
index bc23d3a94d5..f84ef0c6547 100644
--- a/src/mongo/db/startup_recovery.cpp
+++ b/src/mongo/db/startup_recovery.cpp
@@ -292,7 +292,7 @@ bool hasReplSetConfigDoc(OperationContext* opCtx) {
*/
void assertCappedOplog(OperationContext* opCtx, Database* db) {
const NamespaceString oplogNss(NamespaceString::kRsOplogNamespace);
- invariant(opCtx->lockState()->isDbLockedForMode(oplogNss.db(), MODE_IS));
+ invariant(opCtx->lockState()->isDbLockedForMode(oplogNss.dbName(), MODE_IS));
const CollectionPtr& oplogCollection =
CollectionCatalog::get(opCtx)->lookupCollectionByNamespace(opCtx, oplogNss);
if (oplogCollection && !oplogCollection->isCapped()) {