summaryrefslogtreecommitdiff
path: root/src/mongo/db/update
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2017-10-04 16:52:54 -0400
committerLouis Williams <louis.williams@mongodb.com>2017-10-06 17:46:07 -0400
commit3d42a318626e059b2669356bb5d39056b8fa1b76 (patch)
tree72765174ead0fc800bfc678b7a7ce9152ba586c0 /src/mongo/db/update
parentbb71f4a4bea6c030675477d0dce18f77d0ee4b4b (diff)
downloadmongo-3d42a318626e059b2669356bb5d39056b8fa1b76.tar.gz
SERVER-30745 Prohibit unsafe comparisons against featureCompatibilityVersion
Diffstat (limited to 'src/mongo/db/update')
-rw-r--r--src/mongo/db/update/update_driver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/update/update_driver.cpp b/src/mongo/db/update/update_driver.cpp
index 5380de021ae..fb076acf98d 100644
--- a/src/mongo/db/update/update_driver.cpp
+++ b/src/mongo/db/update/update_driver.cpp
@@ -198,8 +198,7 @@ Status UpdateDriver::parse(
} else if (_modOptions.fromOplogApplication) {
updateSemantics = UpdateSemantics::kModifierInterface;
} else {
- updateSemantics = (serverGlobalParams.featureCompatibility.version.load() ==
- ServerGlobalParams::FeatureCompatibility::Version::k34)
+ updateSemantics = (!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36())
? UpdateSemantics::kModifierInterface
: UpdateSemantics::kUpdateNode;
}