diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2017-08-09 15:47:36 -0400 |
---|---|---|
committer | Gabriel Russell <gabriel.russell@mongodb.com> | 2017-08-16 10:43:10 -0400 |
commit | 8522ddb13187fd313991508e172ba4baa6737a6c (patch) | |
tree | fe22a15ebb51880d1c31dd6db7bfe2713d942665 /src/mongo/s/commands/cluster_is_master_cmd.cpp | |
parent | 4520069d8584ffaa1439482b0a1ff8167d0812be (diff) | |
download | mongo-8522ddb13187fd313991508e172ba4baa6737a6c.tar.gz |
SERVER-30432 add logicalSessionTimeoutMinutes to isMaster results
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_is_master_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp index 979ab6f531c..4d573efe3eb 100644 --- a/src/mongo/s/commands/cluster_is_master_cmd.cpp +++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp @@ -30,6 +30,7 @@ #include "mongo/db/client.h" #include "mongo/db/commands.h" +#include "mongo/db/logical_session_id.h" #include "mongo/db/operation_context.h" #include "mongo/db/ops/write_ops.h" #include "mongo/db/server_options.h" @@ -104,6 +105,7 @@ public: result.appendNumber("maxMessageSizeBytes", MaxMessageSizeBytes); result.appendNumber("maxWriteBatchSize", write_ops::kMaxWriteBatchSize); result.appendDate("localTime", jsTime()); + result.append("logicalSessionTimeoutMinutes", localLogicalSessionTimeoutMinutes); // Mongos tries to keep exactly the same version range of the server for which // it is compiled. |