summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/collection_bulk_loader_impl.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-10-26 05:59:28 -0400
committerBenety Goh <benety@mongodb.com>2018-10-26 05:59:28 -0400
commit8fe142c376ae279e99ddae7547a8f7cd4e0ce5e3 (patch)
treeafa7004080a1ed005e90eba0650767eca8519056 /src/mongo/db/repl/collection_bulk_loader_impl.cpp
parentdad93d8c43636615e957f66050f0488ab0a525d4 (diff)
downloadmongo-8fe142c376ae279e99ddae7547a8f7cd4e0ce5e3.tar.gz
SERVER-37589 add library for MultiIndexBlock
Diffstat (limited to 'src/mongo/db/repl/collection_bulk_loader_impl.cpp')
-rw-r--r--src/mongo/db/repl/collection_bulk_loader_impl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/repl/collection_bulk_loader_impl.cpp b/src/mongo/db/repl/collection_bulk_loader_impl.cpp
index d2b28d1d349..54b073f290a 100644
--- a/src/mongo/db/repl/collection_bulk_loader_impl.cpp
+++ b/src/mongo/db/repl/collection_bulk_loader_impl.cpp
@@ -38,6 +38,7 @@
#include "mongo/bson/bsonobjbuilder.h"
#include "mongo/db/catalog/collection.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"
@@ -61,8 +62,10 @@ CollectionBulkLoaderImpl::CollectionBulkLoaderImpl(ServiceContext::UniqueClient&
_opCtx{std::move(opCtx)},
_autoColl{std::move(autoColl)},
_nss{_autoColl->getCollection()->ns()},
- _idIndexBlock(_autoColl->getCollection()->createMultiIndexBlock(_opCtx.get())),
- _secondaryIndexesBlock(_autoColl->getCollection()->createMultiIndexBlock(_opCtx.get())),
+ _idIndexBlock(
+ std::make_unique<MultiIndexBlockImpl>(_opCtx.get(), _autoColl->getCollection())),
+ _secondaryIndexesBlock(
+ std::make_unique<MultiIndexBlockImpl>(_opCtx.get(), _autoColl->getCollection())),
_idIndexSpec(idIndexSpec.getOwned()) {
invariant(_opCtx);