From 61b430008982fd97d7d0f6e8625907edf4ad84c4 Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Wed, 11 Mar 2015 14:07:55 -0400 Subject: SERVER-17273 Fix casing of catchUp in stepdown shell helper (cherry picked from commit 139ccb27bff55ee11cb204e80703241bc9288813) --- src/mongo/shell/utils.js | 8 ++++---- 1 file 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); }; -- cgit v1.2.1