summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_is_master_cmd.cpp
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2017-11-02 15:06:54 -0400
committerJason Carey <jcarey@argv.me>2017-11-09 18:35:00 -0500
commitbf53cbe298bc6724b1f2b5bf16afbd9e3876c623 (patch)
treee09009ab740b9d3d15c48b1b9a3ec09c2086637b /src/mongo/s/commands/cluster_is_master_cmd.cpp
parentc3c736d3f2755e7e8b59638fd94cb000265abdf3 (diff)
downloadmongo-bf53cbe298bc6724b1f2b5bf16afbd9e3876c623.tar.gz
SERVER-31777 deactivate logical sessions for fcv34
For anything less than fully upgraded to 3.6: * suppress logicalSessionTimeoutMinutes in isMaster * fail any commands that passes lsid
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_is_master_cmd.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp
index c8180d2e539..fa4d556d922 100644
--- a/src/mongo/s/commands/cluster_is_master_cmd.cpp
+++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp
@@ -112,7 +112,10 @@ public:
result.appendNumber("maxMessageSizeBytes", MaxMessageSizeBytes);
result.appendNumber("maxWriteBatchSize", write_ops::kMaxWriteBatchSize);
result.appendDate("localTime", jsTime());
- result.append("logicalSessionTimeoutMinutes", localLogicalSessionTimeoutMinutes);
+ if (serverGlobalParams.featureCompatibility.getVersion() ==
+ ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36) {
+ result.append("logicalSessionTimeoutMinutes", localLogicalSessionTimeoutMinutes);
+ }
// Mongos tries to keep exactly the same version range of the server for which
// it is compiled.