diff options
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager.cpp')
-rw-r--r-- | src/mongo/db/s/migration_destination_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.cpp b/src/mongo/db/s/migration_destination_manager.cpp index 0df33635636..075f109f59f 100644 --- a/src/mongo/db/s/migration_destination_manager.cpp +++ b/src/mongo/db/s/migration_destination_manager.cpp @@ -652,7 +652,7 @@ void MigrationDestinationManager::cloneCollectionIndexesAndOptions(OperationCont AutoGetOrCreateDb autoCreateDb(opCtx, nss.db(), MODE_X); auto db = autoCreateDb.getDb(); - auto collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace(nss); + auto collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace(opCtx, nss); if (collection) { checkUUIDsMatch(collection); } else { @@ -665,7 +665,7 @@ void MigrationDestinationManager::cloneCollectionIndexesAndOptions(OperationCont uassertStatusOK(db->userCreateNS( opCtx, nss, collectionOptions, createDefaultIndexes, donorIdIndexSpec)); wuow.commit(); - collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace(nss); + collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace(opCtx, nss); } auto indexSpecs = checkEmptyOrGetMissingIndexesFromDonor(collection); |