summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/validate_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/validate_state.cpp')
-rw-r--r--src/mongo/db/catalog/validate_state.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/validate_state.cpp b/src/mongo/db/catalog/validate_state.cpp
index 19a20a178b5..f1924d254f9 100644
--- a/src/mongo/db/catalog/validate_state.cpp
+++ b/src/mongo/db/catalog/validate_state.cpp
@@ -67,8 +67,8 @@ ValidateState::ValidateState(OperationContext* opCtx,
}
_database = _databaseLock->getDb() ? _databaseLock->getDb() : nullptr;
- _collection =
- _database ? CollectionCatalog::get(opCtx).lookupCollectionByNamespace(_nss) : nullptr;
+ _collection = _database ? CollectionCatalog::get(opCtx).lookupCollectionByNamespace(opCtx, _nss)
+ : nullptr;
if (!_collection) {
if (_database && ViewCatalog::get(_database)->lookup(opCtx, _nss.ns())) {
@@ -289,7 +289,7 @@ void ValidateState::_relockDatabaseAndCollection(OperationContext* opCtx) {
uasserted(ErrorCodes::Interrupted, collErrMsg);
}
- _collection = CollectionCatalog::get(opCtx).lookupCollectionByUUID(*_uuid);
+ _collection = CollectionCatalog::get(opCtx).lookupCollectionByUUID(opCtx, *_uuid);
uassert(ErrorCodes::Interrupted, collErrMsg, _collection);
// The namespace of the collection can be changed during a same database collection rename.