diff options
author | Benety Goh <benety@mongodb.com> | 2018-10-26 05:59:28 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-10-26 05:59:28 -0400 |
commit | 8fe142c376ae279e99ddae7547a8f7cd4e0ce5e3 (patch) | |
tree | afa7004080a1ed005e90eba0650767eca8519056 /src/mongo/db/repl/storage_interface_impl_test.cpp | |
parent | dad93d8c43636615e957f66050f0488ab0a525d4 (diff) | |
download | mongo-8fe142c376ae279e99ddae7547a8f7cd4e0ce5e3.tar.gz |
SERVER-37589 add library for MultiIndexBlock
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl_test.cpp')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl_test.cpp b/src/mongo/db/repl/storage_interface_impl_test.cpp index a1699986747..0913f0a1c56 100644 --- a/src/mongo/db/repl/storage_interface_impl_test.cpp +++ b/src/mongo/db/repl/storage_interface_impl_test.cpp @@ -39,6 +39,8 @@ #include "mongo/db/catalog/collection_options.h" #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/document_validation.h" +#include "mongo/db/catalog/multi_index_block.h" +#include "mongo/db/catalog/multi_index_block_impl.h" #include "mongo/db/client.h" #include "mongo/db/concurrency/d_concurrency.h" #include "mongo/db/concurrency/write_conflict_exception.h" @@ -136,8 +138,7 @@ int createIndexForColl(OperationContext* opCtx, NamespaceString nss, BSONObj ind AutoGetCollection autoColl(opCtx, nss, MODE_X); auto coll = autoColl.getCollection(); - auto indexerPtr = coll->createMultiIndexBlock(opCtx); - MultiIndexBlock& indexer(*indexerPtr); + MultiIndexBlockImpl indexer(opCtx, coll); ASSERT_OK(indexer.init(indexSpec).getStatus()); WriteUnitOfWork wunit(opCtx); |