summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_options.cpp
diff options
context:
space:
mode:
authorRoxane <roxane.fruytier@10gen.com>2019-07-01 16:37:29 -0400
committerRoxane <roxane.fruytier@10gen.com>2019-07-09 10:19:51 -0400
commit9ad917886db091a5b7fde2434eea9095c7145986 (patch)
treedd3c91822e30c542e7c7878699d769beefa4afce /src/mongo/shell/shell_options.cpp
parenta013379db61a39705f9d8e81458026cf613bb064 (diff)
downloadmongo-9ad917886db091a5b7fde2434eea9095c7145986.tar.gz
SERVER-33749 Add idleSessionTimeout flag
Diffstat (limited to 'src/mongo/shell/shell_options.cpp')
-rw-r--r--src/mongo/shell/shell_options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/shell/shell_options.cpp b/src/mongo/shell/shell_options.cpp
index 325584765db..026cb9af45b 100644
--- a/src/mongo/shell/shell_options.cpp
+++ b/src/mongo/shell/shell_options.cpp
@@ -237,6 +237,10 @@ Status storeMongoShellOptions(const moe::Environment& params,
shellGlobalParams.jsHeapLimitMB = jsHeapLimitMB;
}
+ if (params.count("idleSessionTimeout")) {
+ shellGlobalParams.idleSessionTimeout = Seconds(params["idleSessionTimeout"].as<int>());
+ }
+
if (shellGlobalParams.url == "*") {
StringBuilder sb;
sb << "ERROR: "