summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2016-10-17 14:22:57 -0400
committerRandolph Tan <randolph@10gen.com>2016-10-17 14:23:38 -0400
commit01fb78506f2a93702b1f0c14767cd3d5a2a420f2 (patch)
tree4377e1bc37013bd9c10db73db2972a7e7e563697 /src
parent9447aa349ef2f3ef140e61b6cfb53d032c1c021f (diff)
downloadmongo-01fb78506f2a93702b1f0c14767cd3d5a2a420f2.tar.gz
SERVER-26610 Fix maxTimeMS exception in setFeatureCompatibilityVersion
Diffstat (limited to 'src')
-rw-r--r--src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp b/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp
index e8d2761993a..641e16dd31e 100644
--- a/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp
+++ b/src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp
@@ -103,7 +103,7 @@ public:
<< ". See http://dochub.mongodb.org/core/3.4-feature-compatibility.",
elem.type() == BSONType::String);
version = elem.String();
- } else if (elem.fieldNameStringData() != "maxTimeMS") {
+ } else if (elem.fieldNameStringData() == "maxTimeMS") {
continue;
} else {
uasserted(ErrorCodes::FailedToParse,