diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-02-05 10:38:51 -0500 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-02-19 23:54:51 -0500 |
commit | 79a050141e79dc267f8723adb48b191652ba9fce (patch) | |
tree | 6ba8348bd7ab933835ca04b64f9c40639fb41ffb /src/mongo/db/catalog/database_test.cpp | |
parent | 1894b1db527ee684120f433f5face7a8aa275dfb (diff) | |
download | mongo-79a050141e79dc267f8723adb48b191652ba9fce.tar.gz |
SERVER-38097 Pull opCtx and collection ptrs out of MultiIndexBlock and pass instead as function parameters
Diffstat (limited to 'src/mongo/db/catalog/database_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/database_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/database_test.cpp b/src/mongo/db/catalog/database_test.cpp index d69ae11ed1d..230e2f23251 100644 --- a/src/mongo/db/catalog/database_test.cpp +++ b/src/mongo/db/catalog/database_test.cpp @@ -311,12 +311,12 @@ void _testDropCollectionThrowsExceptionIfThereAreIndexesInProgress(OperationCont indexCatalog->createIndexBuildBlock(opCtx, indexInfoObj, IndexBuildMethod::kHybrid); { WriteUnitOfWork wuow(opCtx); - ASSERT_OK(indexBuildBlock->init()); + ASSERT_OK(indexBuildBlock->init(opCtx, collection)); wuow.commit(); } - ON_BLOCK_EXIT([&indexBuildBlock, opCtx] { + ON_BLOCK_EXIT([&indexBuildBlock, opCtx, collection] { WriteUnitOfWork wuow(opCtx); - indexBuildBlock->success(); + indexBuildBlock->success(opCtx, collection); wuow.commit(); }); |