diff options
author | Louis Williams <louis.williams@mongodb.com> | 2017-10-04 16:52:54 -0400 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2017-10-06 17:46:07 -0400 |
commit | 3d42a318626e059b2669356bb5d39056b8fa1b76 (patch) | |
tree | 72765174ead0fc800bfc678b7a7ce9152ba586c0 /src/mongo/db/update | |
parent | bb71f4a4bea6c030675477d0dce18f77d0ee4b4b (diff) | |
download | mongo-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.cpp | 3 |
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; } |