summaryrefslogtreecommitdiff
path: root/jstests/libs/feature_flag_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/libs/feature_flag_util.js')
-rw-r--r--jstests/libs/feature_flag_util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/libs/feature_flag_util.js b/jstests/libs/feature_flag_util.js
index 6f4db466650..1fe8f4b75c0 100644
--- a/jstests/libs/feature_flag_util.js
+++ b/jstests/libs/feature_flag_util.js
@@ -12,8 +12,9 @@ var FeatureFlagUtil = class {
const fcvDoc = admin.runCommand({getParameter: 1, featureCompatibilityVersion: 1});
flagDoc.hasOwnProperty("featureFlag${featureFlag}") &&
flagDoc.featureFlag${featureFlag}.value &&
+ (!fcvDoc.hasOwnProperty("featureCompatibilityVersion") ||
MongoRunner.compareBinVersions(fcvDoc.featureCompatibilityVersion.version,
- flagDoc.featureFlag${featureFlag}.fcv) >= 0;`
+ flagDoc.featureFlag${featureFlag}.fcv) >= 0);`
);
}
};