summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_compact.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/catalog/collection_compact.cpp
parentdad93d8c43636615e957f66050f0488ab0a525d4 (diff)
downloadmongo-8fe142c376ae279e99ddae7547a8f7cd4e0ce5e3.tar.gz
SERVER-37589 add library for MultiIndexBlock
Diffstat (limited to 'src/mongo/db/catalog/collection_compact.cpp')
-rw-r--r--src/mongo/db/catalog/collection_compact.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_compact.cpp b/src/mongo/db/catalog/collection_compact.cpp
index 7390aaf9067..5cd68625468 100644
--- a/src/mongo/db/catalog/collection_compact.cpp
+++ b/src/mongo/db/catalog/collection_compact.cpp
@@ -35,6 +35,7 @@
#include "mongo/db/catalog/document_validation.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/index/index_access_method.h"
#include "mongo/db/index/index_descriptor.h"
#include "mongo/db/operation_context.h"
@@ -125,8 +126,7 @@ StatusWith<CompactStats> compactCollection(OperationContext* opCtx,
CompactStats stats;
- auto indexerPtr = collection->createMultiIndexBlock(opCtx);
- MultiIndexBlock& indexer(*indexerPtr);
+ MultiIndexBlockImpl indexer(opCtx, collection);
indexer.allowInterruption();
indexer.ignoreUniqueConstraint(); // in compact we should be doing no checking