diff options
Diffstat (limited to 'src/mongo/db/catalog/collection_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_test.cpp b/src/mongo/db/catalog/collection_test.cpp index a95c7a9b93f..759a01fcd52 100644 --- a/src/mongo/db/catalog/collection_test.cpp +++ b/src/mongo/db/catalog/collection_test.cpp @@ -228,7 +228,7 @@ void CollectionTest::makeCollectionForMultikey(NamespaceString nss, StringData i auto opCtx = operationContext(); { AutoGetCollection autoColl(opCtx, nss, MODE_IX); - auto db = autoColl.ensureDbExists(); + auto db = autoColl.ensureDbExists(opCtx); WriteUnitOfWork wuow(opCtx); ASSERT(db->createCollection(opCtx, nss)); wuow.commit(); @@ -237,7 +237,7 @@ void CollectionTest::makeCollectionForMultikey(NamespaceString nss, StringData i { AutoGetCollection autoColl(opCtx, nss, MODE_X); WriteUnitOfWork wuow(opCtx); - auto collWriter = autoColl.getWritableCollection(); + auto collWriter = autoColl.getWritableCollection(opCtx); ASSERT_OK(collWriter->getIndexCatalog()->createIndexOnEmptyCollection( opCtx, collWriter, BSON("v" << 2 << "name" << indexName << "key" << BSON("a" << 1)))); wuow.commit(); |