summaryrefslogtreecommitdiff
path: root/src/mongo/db/index
diff options
context:
space:
mode:
authorGrace Luong <grace.luong@mongodb.com>2020-07-24 22:35:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-25 02:25:37 +0000
commit0045dc81dfadc33d60130dbb575a7a0a74305924 (patch)
tree4b2e3f8dbd3351e8cfb9ba2574d6384c7bba8126 /src/mongo/db/index
parent32b754043dd3af1e45e9931b231fb4d98f1730b5 (diff)
downloadmongo-0045dc81dfadc33d60130dbb575a7a0a74305924.tar.gz
SERVER-49070: add and use FCV gating helpers
Diffstat (limited to 'src/mongo/db/index')
-rw-r--r--src/mongo/db/index/index_descriptor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index/index_descriptor.cpp b/src/mongo/db/index/index_descriptor.cpp
index 6dddcf4c0d2..a16478bc4ac 100644
--- a/src/mongo/db/index/index_descriptor.cpp
+++ b/src/mongo/db/index/index_descriptor.cpp
@@ -179,8 +179,8 @@ IndexDescriptor::Comparison IndexDescriptor::compareIndexOptions(
// The partialFilterExpression is only part of the index signature if FCV has been set to 4.6.
// TODO SERVER-47766: remove these FCV checks after we branch for 4.7.
- auto isFCV46 = serverGlobalParams.featureCompatibility.getVersion() ==
- ServerGlobalParams::FeatureCompatibility::Version::kVersion451;
+ auto isFCV46 = serverGlobalParams.featureCompatibility.isGreaterThanOrEqualTo(
+ ServerGlobalParams::FeatureCompatibility::Version::kVersion451);
// If we have a partial filter expression and the other index doesn't, or vice-versa, then the
// two indexes are not equivalent. We therefore return Comparison::kDifferent immediately.