summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/dbcheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/dbcheck.cpp')
-rw-r--r--src/mongo/db/repl/dbcheck.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/dbcheck.cpp b/src/mongo/db/repl/dbcheck.cpp
index 90f5391f161..16011047f43 100644
--- a/src/mongo/db/repl/dbcheck.cpp
+++ b/src/mongo/db/repl/dbcheck.cpp
@@ -386,7 +386,8 @@ AutoGetCollectionForDbCheck::AutoGetCollectionForDbCheck(OperationContext* opCtx
: _agd(opCtx, nss), _collLock(opCtx, nss, MODE_S) {
std::string msg;
- _collection = _agd.getDb() ? _agd.getDb()->getCollection(opCtx, nss) : nullptr;
+ _collection =
+ _agd.getDb() ? CollectionCatalog::get(opCtx).lookupCollectionByNamespace(nss) : nullptr;
// If the collection gets deleted after the check is launched, record that in the health log.
if (!_collection) {