summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-03-11 14:07:55 -0400
committerRamon Fernandez <ramon.fernandez@mongodb.com>2015-04-20 14:55:09 -0400
commit61b430008982fd97d7d0f6e8625907edf4ad84c4 (patch)
tree3a940352d86773d41fe30608549502767b3fc6ca
parent47cc43c9131b5d5d2c77906a15128da24e240b74 (diff)
downloadmongo-61b430008982fd97d7d0f6e8625907edf4ad84c4.tar.gz
SERVER-17273 Fix casing of catchUp in stepdown shell helper
(cherry picked from commit 139ccb27bff55ee11cb204e80703241bc9288813)
-rw-r--r--src/mongo/shell/utils.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/shell/utils.js b/src/mongo/shell/utils.js
index c681e25ccd5..14190f9a2ca 100644
--- a/src/mongo/shell/utils.js
+++ b/src/mongo/shell/utils.js
@@ -920,7 +920,7 @@ rs.help = function () {
print("\trs.add(hostportstr) add a new member to the set with default attributes (disconnects)");
print("\trs.add(membercfgobj) add a new member to the set with extra attributes (disconnects)");
print("\trs.addArb(hostportstr) add a new member which is arbiterOnly:true (disconnects)");
- print("\trs.stepDown([stepdownSecs, catchupSecs]) step down as primary (disconnects)");
+ print("\trs.stepDown([stepdownSecs, catchUpSecs]) step down as primary (disconnects)");
print("\trs.syncFrom(hostportstr) make a secondary sync from the given member");
print("\trs.freeze(secs) make a node ineligible to become primary for the time specified");
print("\trs.remove(hostportstr) remove a host from the replica set (disconnects)");
@@ -998,10 +998,10 @@ rs.add = function (hostport, arb) {
return this._runCmd({ replSetReconfig: c });
}
rs.syncFrom = function (host) { return db._adminCommand({replSetSyncFrom : host}); };
-rs.stepDown = function (stepdownSecs, catchupSecs) {
+rs.stepDown = function (stepdownSecs, catchUpSecs) {
var cmdObj = {replSetStepDown: stepdownSecs === undefined ? 60 : stepdownSecs};
- if (catchupSecs !== undefined) {
- cmdObj['secondaryCatchUpPeriodSecs'] = catchupSecs;
+ if (catchUpSecs !== undefined) {
+ cmdObj['secondaryCatchUpPeriodSecs'] = catchUpSecs;
}
return db._adminCommand(cmdObj);
};