diff options
author | jannaerin <golden.janna@gmail.com> | 2022-07-11 17:40:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-11 18:57:30 +0000 |
commit | 3f5e02a10ad19d4694c82d93e4a4e3a0b36c0fb1 (patch) | |
tree | 02e3b8029d4e89c24a6f3ba94840da992e55e290 /src/mongo/db/startup_recovery.cpp | |
parent | 735e3f711ae28979811d4dcb2d35aeba6ffa460c (diff) | |
download | mongo-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.cpp | 2 |
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()) { |