diff options
author | Dianna <dianna.hohensee@10gen.com> | 2019-04-12 17:44:50 -0400 |
---|---|---|
committer | Dianna <dianna.hohensee@10gen.com> | 2019-04-22 14:44:28 -0400 |
commit | 75f5f054406ae2a9805960872d5bae49561d4d82 (patch) | |
tree | f6b06b003c5ee8076e8afc674b47a9e43b01bbc4 /src/mongo/db/cloner.cpp | |
parent | 44c348349f948dddd2aab25ac84f639aa1731644 (diff) | |
download | mongo-75f5f054406ae2a9805960872d5bae49561d4d82.tar.gz |
SERVER-39323 refactor index spec validation code to make it more modularized and flexible.
- Remove a "$freelist" collection reference, which was removed with MMAPv1
- Modularize a {buildIndexes:false} check that causes a IndexAlreadyExists error to be returned
- Split IndexCatalog::removeExistingIndexes into removeExistingIndexes and removeExistingIndexesNoChecks,
to be more explicit about the internal behavior.
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r-- | src/mongo/db/cloner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp index 3f49093f124..b52ef891603 100644 --- a/src/mongo/db/cloner.cpp +++ b/src/mongo/db/cloner.cpp @@ -394,7 +394,7 @@ void Cloner::copyIndexes(OperationContext* opCtx, } auto indexCatalog = collection->getIndexCatalog(); - auto prunedIndexesToBuild = indexCatalog->removeExistingIndexes(opCtx, indexesToBuild); + auto prunedIndexesToBuild = indexCatalog->removeExistingIndexesNoChecks(opCtx, indexesToBuild); if (prunedIndexesToBuild.empty()) { return; } |