diff options
author | Kristina <kristina@10gen.com> | 2011-04-04 10:15:51 -0400 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2011-04-04 10:15:51 -0400 |
commit | c5b38d88eb92b0b32697578be45499062ea5aebb (patch) | |
tree | 24cc03c77916335abea450688496279d205a2761 /shell | |
parent | 6d52227ae7493d9d806e1dd2a0e71c4026638082 (diff) | |
download | mongo-c5b38d88eb92b0b32697578be45499062ea5aebb.tar.gz |
force argument for reconfig SERVER-2894
Diffstat (limited to 'shell')
-rw-r--r-- | shell/mongo_vstudio.cpp | 2 | ||||
-rw-r--r-- | shell/utils.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/mongo_vstudio.cpp b/shell/mongo_vstudio.cpp index fbcb1a16c6d..8961ef9d9f9 100644 --- a/shell/mongo_vstudio.cpp +++ b/shell/mongo_vstudio.cpp @@ -1360,7 +1360,7 @@ const StringData _jscode_raw_utils = "}\n" "return res;\n" "}\n" -"rs.stepDown = function (secs) { return db._adminCommand({ replSetStepDown:secs||60}); }\n" +"rs.stepDown = function (secs) { return db._adminCommand({ replSetStepDown:(secs === undefined) ? 60:secs}); }\n" "rs.freeze = function (secs) { return db._adminCommand({replSetFreeze:secs}); }\n" "rs.addArb = function (hn) { return this.add(hn, true); }\n" "rs.conf = function () { return db.getSisterDB(\"local\").system.replset.findOne(); }\n" diff --git a/shell/utils.js b/shell/utils.js index 6b52ab9156d..d060d973276 100644 --- a/shell/utils.js +++ b/shell/utils.js @@ -1355,7 +1355,7 @@ rs.add = function (hostport, arb) { } return res; } -rs.stepDown = function (secs) { return db._adminCommand({ replSetStepDown:secs||60}); } +rs.stepDown = function (secs) { return db._adminCommand({ replSetStepDown:(secs === undefined) ? 60:secs}); } rs.freeze = function (secs) { return db._adminCommand({replSetFreeze:secs}); } rs.addArb = function (hn) { return this.add(hn, true); } rs.conf = function () { return db.getSisterDB("local").system.replset.findOne(); } |