summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/drop_indexes.cpp
diff options
context:
space:
mode:
authorPavi Vetriselvan <pavithra.vetriselvan@mongodb.com>2022-07-21 18:31:09 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-21 19:08:19 +0000
commitb3305c20f8505648460fcbb177fff21c9c1cf3d0 (patch)
tree79ba2a456d833ab13652b4d88016169b7b5ca039 /src/mongo/db/catalog/drop_indexes.cpp
parent808c61d3153241613acabe1da2058c26d434f152 (diff)
downloadmongo-b3305c20f8505648460fcbb177fff21c9c1cf3d0.tar.gz
SERVER-61481 Remove check in dropIndexes that no index builds are in progress for coll
Diffstat (limited to 'src/mongo/db/catalog/drop_indexes.cpp')
-rw-r--r--src/mongo/db/catalog/drop_indexes.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/db/catalog/drop_indexes.cpp b/src/mongo/db/catalog/drop_indexes.cpp
index 54d3ffd1408..cce44ba1869 100644
--- a/src/mongo/db/catalog/drop_indexes.cpp
+++ b/src/mongo/db/catalog/drop_indexes.cpp
@@ -560,15 +560,6 @@ DropIndexesReply dropIndexes(OperationContext* opCtx,
invariant((*collection)->getIndexCatalog()->numIndexesInProgress(opCtx) == 0);
}
- // TODO(SERVER-61481): Remove this block once kLastLTS is 6.0. As of 5.2, dropping an index
- // while having a separate index build on the same collection is permitted.
- if (serverGlobalParams.featureCompatibility.isLessThan(
- multiversion::FeatureCompatibilityVersion::kVersion_5_2)) {
- // The index catalog requires that no active index builders are running when dropping ready
- // indexes.
- IndexBuildsCoordinator::get(opCtx)->assertNoIndexBuildInProgForCollection(collectionUUID);
- }
-
writeConflictRetry(
opCtx, "dropIndexes", dbAndUUID.toString(), [opCtx, &collection, &indexNames, &reply] {
WriteUnitOfWork wunit(opCtx);
@@ -607,14 +598,6 @@ Status dropIndexesForApplyOps(OperationContext* opCtx,
"indexes"_attr = cmdObj[kIndexFieldName].toString(false));
}
- // TODO(SERVER-61481): Remove this block once kLastLTS is 6.0. As of 5.2, dropping an index
- // while having a separate index build on the same collection is permitted.
- if (serverGlobalParams.featureCompatibility.isLessThan(
- multiversion::FeatureCompatibilityVersion::kVersion_5_2)) {
- IndexBuildsCoordinator::get(opCtx)->assertNoIndexBuildInProgForCollection(
- collection->uuid());
- }
-
auto swIndexNames = getIndexNames(opCtx, collection.getCollection(), parsed.getIndex());
if (!swIndexNames.isOK()) {
return swIndexNames.getStatus();