diff options
Diffstat (limited to 'src/mongo/db/update')
-rw-r--r-- | src/mongo/db/update/update_driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/update/update_driver.cpp b/src/mongo/db/update/update_driver.cpp index fb076acf98d..a09dc6635ec 100644 --- a/src/mongo/db/update/update_driver.cpp +++ b/src/mongo/db/update/update_driver.cpp @@ -198,7 +198,8 @@ Status UpdateDriver::parse( } else if (_modOptions.fromOplogApplication) { updateSemantics = UpdateSemantics::kModifierInterface; } else { - updateSemantics = (!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36()) + updateSemantics = (serverGlobalParams.featureCompatibility.getVersion() != + ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36) ? UpdateSemantics::kModifierInterface : UpdateSemantics::kUpdateNode; } |