diff options
Diffstat (limited to 'src/mongo/db/catalog/index_key_validate.cpp')
-rw-r--r-- | src/mongo/db/catalog/index_key_validate.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/index_key_validate.cpp b/src/mongo/db/catalog/index_key_validate.cpp index c25fe90e159..2c45fc02389 100644 --- a/src/mongo/db/catalog/index_key_validate.cpp +++ b/src/mongo/db/catalog/index_key_validate.cpp @@ -40,7 +40,6 @@ #include "mongo/base/status.h" #include "mongo/base/status_with.h" -#include "mongo/db/commands/test_commands_enabled.h" #include "mongo/db/field_ref.h" #include "mongo/db/index/index_descriptor.h" #include "mongo/db/index/wildcard_key_generator.h" @@ -310,8 +309,7 @@ StatusWith<BSONObj> validateIndexSpec( const auto isFeatureDisabled = (featureCompatibility.isVersionInitialized() && featureCompatibility.getVersion() < - ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo44) || - !getTestCommandsEnabled(); + ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo44); if (isFeatureDisabled && (indexSpecElem.embeddedObject().nFields() > 1) && (IndexNames::findPluginName(indexSpecElem.embeddedObject()) == IndexNames::HASHED)) { |