From 65eced031a2c8d8b1c5e5815881466b8fbb3bc01 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Fri, 12 Oct 2018 09:37:57 -0400 Subject: SERVER-36889 unshim MultiIndexBlock --- src/mongo/db/commands/drop_indexes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/commands/drop_indexes.cpp') diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp index 95452e0024c..2ad2e5b9074 100644 --- a/src/mongo/db/commands/drop_indexes.cpp +++ b/src/mongo/db/commands/drop_indexes.cpp @@ -41,8 +41,8 @@ #include "mongo/db/catalog/database.h" #include "mongo/db/catalog/drop_indexes.h" #include "mongo/db/catalog/index_catalog.h" -#include "mongo/db/catalog/index_create.h" #include "mongo/db/catalog/index_key_validate.h" +#include "mongo/db/catalog/multi_index_block.h" #include "mongo/db/client.h" #include "mongo/db/commands.h" #include "mongo/db/concurrency/write_conflict_exception.h" @@ -200,7 +200,7 @@ public: WriteUnitOfWork wunit(opCtx); collection->getIndexCatalog()->dropAllIndexes(opCtx, true); - indexer = stdx::make_unique(opCtx, collection); + indexer = collection->createMultiIndexBlock(opCtx); swIndexesToRebuild = indexer->init(all); uassertStatusOK(swIndexesToRebuild.getStatus()); -- cgit v1.2.1