summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/drop_indexes.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/commands/drop_indexes.cpp
parentdad93d8c43636615e957f66050f0488ab0a525d4 (diff)
downloadmongo-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.cpp3
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());