diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/catalog/multi_index_block_test.cpp | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/db/catalog/multi_index_block_test.cpp')
| -rw-r--r-- | src/mongo/db/catalog/multi_index_block_test.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/mongo/db/catalog/multi_index_block_test.cpp b/src/mongo/db/catalog/multi_index_block_test.cpp index 2fb9caf7371..e9153ba35dc 100644 --- a/src/mongo/db/catalog/multi_index_block_test.cpp +++ b/src/mongo/db/catalog/multi_index_block_test.cpp @@ -90,8 +90,11 @@ TEST_F(MultiIndexBlockTest, CommitWithoutInsertingDocuments) { AutoGetCollection autoColl(operationContext(), getNSS(), MODE_X); CollectionWriter coll(operationContext(), autoColl); - auto specs = unittest::assertGet(indexer->init( - operationContext(), coll, std::vector<BSONObj>(), MultiIndexBlock::kNoopOnInitFn)); + auto specs = unittest::assertGet(indexer->init(operationContext(), + coll, + std::vector<BSONObj>(), + MultiIndexBlock::kNoopOnInitFn, + /*forRecovery=*/false)); ASSERT_EQUALS(0U, specs.size()); ASSERT_OK(indexer->dumpInsertsFromBulk(operationContext(), coll.get())); @@ -113,8 +116,11 @@ TEST_F(MultiIndexBlockTest, CommitAfterInsertingSingleDocument) { AutoGetCollection autoColl(operationContext(), getNSS(), MODE_X); CollectionWriter coll(operationContext(), autoColl); - auto specs = unittest::assertGet(indexer->init( - operationContext(), coll, std::vector<BSONObj>(), MultiIndexBlock::kNoopOnInitFn)); + auto specs = unittest::assertGet(indexer->init(operationContext(), + coll, + std::vector<BSONObj>(), + MultiIndexBlock::kNoopOnInitFn, + /*forRecovery=*/false)); ASSERT_EQUALS(0U, specs.size()); ASSERT_OK( @@ -146,8 +152,11 @@ TEST_F(MultiIndexBlockTest, AbortWithoutCleanupAfterInsertingSingleDocument) { AutoGetCollection autoColl(operationContext(), getNSS(), MODE_X); CollectionWriter coll(operationContext(), autoColl); - auto specs = unittest::assertGet(indexer->init( - operationContext(), coll, std::vector<BSONObj>(), MultiIndexBlock::kNoopOnInitFn)); + auto specs = unittest::assertGet(indexer->init(operationContext(), + coll, + std::vector<BSONObj>(), + MultiIndexBlock::kNoopOnInitFn, + /*forRecovery=*/false)); ASSERT_EQUALS(0U, specs.size()); ASSERT_OK( indexer->insertSingleDocumentForInitialSyncOrRecovery(operationContext(), |
