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/commands/drop_indexes.cpp | |
parent | dad93d8c43636615e957f66050f0488ab0a525d4 (diff) | |
download | mongo-8fe142c376ae279e99ddae7547a8f7cd4e0ce5e3.tar.gz |
SERVER-37589 add library for MultiIndexBlock
Diffstat (limited to 'src/mongo/db/commands/drop_indexes.cpp')
-rw-r--r-- | src/mongo/db/commands/drop_indexes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp index f1b2e1a3fc7..b76d01f3b28 100644 --- a/src/mongo/db/commands/drop_indexes.cpp +++ b/src/mongo/db/commands/drop_indexes.cpp @@ -45,6 +45,7 @@ #include "mongo/db/catalog/index_catalog.h" #include "mongo/db/catalog/index_key_validate.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/commands.h" #include "mongo/db/concurrency/write_conflict_exception.h" @@ -202,7 +203,7 @@ public: WriteUnitOfWork wunit(opCtx); collection->getIndexCatalog()->dropAllIndexes(opCtx, true); - indexer = collection->createMultiIndexBlock(opCtx); + indexer = std::make_unique<MultiIndexBlockImpl>(opCtx, collection); swIndexesToRebuild = indexer->init(all); uassertStatusOK(swIndexesToRebuild.getStatus()); |