diff options
author | Benety Goh <benety@mongodb.com> | 2018-10-12 09:37:57 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-10-12 09:37:57 -0400 |
commit | 65eced031a2c8d8b1c5e5815881466b8fbb3bc01 (patch) | |
tree | 7b44213a602fb20a72e63b56c84c342f71b2da52 /src/mongo/dbtests/dbtests.cpp | |
parent | ae2b60fce624cd9f4a95037316033b53846be176 (diff) | |
download | mongo-65eced031a2c8d8b1c5e5815881466b8fbb3bc01.tar.gz |
SERVER-36889 unshim MultiIndexBlock
Diffstat (limited to 'src/mongo/dbtests/dbtests.cpp')
-rw-r--r-- | src/mongo/dbtests/dbtests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp index 4bfd1d3236f..8f92192d05d 100644 --- a/src/mongo/dbtests/dbtests.cpp +++ b/src/mongo/dbtests/dbtests.cpp @@ -36,7 +36,7 @@ #include "mongo/base/init.h" #include "mongo/base/initializer.h" #include "mongo/db/auth/authorization_manager.h" -#include "mongo/db/catalog/index_create.h" +#include "mongo/db/catalog/multi_index_block.h" #include "mongo/db/commands.h" #include "mongo/db/commands/test_commands_enabled.h" #include "mongo/db/db_raii.h" @@ -102,7 +102,8 @@ Status createIndexFromSpec(OperationContext* opCtx, StringData ns, const BSONObj invariant(coll); wunit.commit(); } - MultiIndexBlock indexer(opCtx, coll); + auto indexerPtr = coll->createMultiIndexBlock(opCtx); + MultiIndexBlock& indexer(*indexerPtr); Status status = indexer.init(spec).getStatus(); if (status == ErrorCodes::IndexAlreadyExists) { return Status::OK(); |