diff options
Diffstat (limited to 'src/mongo/db/index/index_descriptor.h')
-rw-r--r-- | src/mongo/db/index/index_descriptor.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/index/index_descriptor.h b/src/mongo/db/index/index_descriptor.h index f1135ca3f91..b62cbeb9e38 100644 --- a/src/mongo/db/index/index_descriptor.h +++ b/src/mongo/db/index/index_descriptor.h @@ -56,7 +56,7 @@ class OperationContext; */ class IndexDescriptor { public: - enum class IndexVersion { kV0 = 0, kV1 = 1, kV2 = 2, kV2Unique = 3 }; + enum class IndexVersion { kV0 = 0, kV1 = 1, kV2 = 2 }; static constexpr IndexVersion kLatestIndexVersion = IndexVersion::kV2; static constexpr StringData k2dIndexBitsFieldName = "bits"_sd; @@ -132,9 +132,7 @@ public: /** * Returns the index version to use if it isn't specified in the index specification. */ - static IndexVersion getDefaultIndexVersion( - ServerGlobalParams::FeatureCompatibility::Version featureCompatibilityVersion, - bool isUniqueIndex = false); + static IndexVersion getDefaultIndexVersion(); // // Information about the key pattern. |