diff options
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()) { |