summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_options.h
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2014-02-26 11:25:50 -0500
committerScott Hernandez <scotthernandez@gmail.com>2014-02-26 12:11:30 -0500
commita56653e1df978f68b887788b39d053e3f88bb0ea (patch)
tree4ba0d7d3114f6edc4a924a6ed40b42632bfe3736 /src/mongo/shell/shell_options.h
parentf4c7d400c8f938374474a37cde54e36168e60b26 (diff)
downloadmongo-a56653e1df978f68b887788b39d053e3f88bb0ea.tar.gz
SERVER-12786: add shell writeMode option
Diffstat (limited to 'src/mongo/shell/shell_options.h')
-rw-r--r--src/mongo/shell/shell_options.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_options.h b/src/mongo/shell/shell_options.h
index 04f6f5222a2..12d0ed5c89c 100644
--- a/src/mongo/shell/shell_options.h
+++ b/src/mongo/shell/shell_options.h
@@ -62,8 +62,12 @@ namespace mongo {
bool autoKillOp;
bool useWriteCommandsDefault;
+ std::string writeMode;
- ShellGlobalParams() : autoKillOp(false), useWriteCommandsDefault(true) { }
+ ShellGlobalParams() : autoKillOp(false),
+ useWriteCommandsDefault(true),
+ writeMode("commands") {
+ }
};
extern ShellGlobalParams shellGlobalParams;