summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/fle/range_validator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/fle/range_validator.cpp')
-rw-r--r--src/mongo/db/query/fle/range_validator.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/query/fle/range_validator.cpp b/src/mongo/db/query/fle/range_validator.cpp
index e355199a4e8..0151c2e3052 100644
--- a/src/mongo/db/query/fle/range_validator.cpp
+++ b/src/mongo/db/query/fle/range_validator.cpp
@@ -43,9 +43,6 @@ namespace {
template <class T>
bool hasRangeTypeToValidate(const T& value) {
auto typeToValidate = EncryptedBinDataType::kFLE2FindRangePayloadV2;
- if (!gFeatureFlagFLE2ProtocolVersion2.isEnabled(serverGlobalParams.featureCompatibility)) {
- typeToValidate = EncryptedBinDataType::kFLE2FindRangePayload;
- }
return isPayloadOfType(typeToValidate, value);
}