diff options
Diffstat (limited to 'src/mongo/db/catalog/multi_index_block_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/multi_index_block_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/catalog/multi_index_block_test.cpp b/src/mongo/db/catalog/multi_index_block_test.cpp index ccaed706b7c..f867de098ed 100644 --- a/src/mongo/db/catalog/multi_index_block_test.cpp +++ b/src/mongo/db/catalog/multi_index_block_test.cpp @@ -91,7 +91,7 @@ TEST_F(MultiIndexBlockTest, CommitWithoutInsertingDocuments) { auto indexer = getIndexer(); AutoGetCollection autoColl(operationContext(), getNSS(), MODE_X); - CollectionWriter coll(autoColl); + CollectionWriter coll(operationContext(), autoColl); auto specs = unittest::assertGet(indexer->init( operationContext(), coll, std::vector<BSONObj>(), MultiIndexBlock::kNoopOnInitFn)); @@ -114,7 +114,7 @@ TEST_F(MultiIndexBlockTest, CommitAfterInsertingSingleDocument) { auto indexer = getIndexer(); AutoGetCollection autoColl(operationContext(), getNSS(), MODE_X); - CollectionWriter coll(autoColl); + CollectionWriter coll(operationContext(), autoColl); auto specs = unittest::assertGet(indexer->init( operationContext(), coll, std::vector<BSONObj>(), MultiIndexBlock::kNoopOnInitFn)); @@ -147,7 +147,7 @@ TEST_F(MultiIndexBlockTest, AbortWithoutCleanupAfterInsertingSingleDocument) { auto indexer = getIndexer(); AutoGetCollection autoColl(operationContext(), getNSS(), MODE_X); - CollectionWriter coll(autoColl); + CollectionWriter coll(operationContext(), autoColl); auto specs = unittest::assertGet(indexer->init( operationContext(), coll, std::vector<BSONObj>(), MultiIndexBlock::kNoopOnInitFn)); @@ -167,7 +167,7 @@ TEST_F(MultiIndexBlockTest, InitWriteConflictException) { auto indexer = getIndexer(); AutoGetCollection autoColl(operationContext(), getNSS(), MODE_X); - CollectionWriter coll(autoColl); + CollectionWriter coll(operationContext(), autoColl); BSONObj spec = BSON("key" << BSON("a" << 1) << "name" << "a_1" |