summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/multi_index_block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/multi_index_block.cpp')
-rw-r--r--src/mongo/db/catalog/multi_index_block.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/catalog/multi_index_block.cpp b/src/mongo/db/catalog/multi_index_block.cpp
index a1a3ab6d3af..3ebf1ce4935 100644
--- a/src/mongo/db/catalog/multi_index_block.cpp
+++ b/src/mongo/db/catalog/multi_index_block.cpp
@@ -72,19 +72,11 @@ namespace {
* step down. A deadlock could result if the index build was attempting to acquire a Collection S
* or X lock while a prepared transaction held a Collection IX lock, and a step down was waiting to
* acquire the RSTL in mode X.
- * We should only drop the RSTL while in FCV 4.2, as prepared transactions can only
- * occur in FCV 4.2.
*/
void _unlockRSTLForIndexCleanup(OperationContext* opCtx) {
if (!serverGlobalParams.featureCompatibility.isVersionInitialized()) {
return;
}
-
- if (serverGlobalParams.featureCompatibility.getVersion() !=
- ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo42) {
- return;
- }
-
opCtx->lockState()->unlockRSTLforPrepare();
invariant(!opCtx->lockState()->isRSTLLocked());
}