diff options
author | Kristina <kristina@10gen.com> | 2011-04-05 18:02:37 -0400 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2011-04-05 18:07:20 -0400 |
commit | 6af8365495692b330f1ec8a93c5f172817f7a7c3 (patch) | |
tree | 95054103ef033460712d0e51320f585af8015f36 /jstests/replsets/replsetfreeze.js | |
parent | 4c981f252999738777e9c6bf1743aea22941861c (diff) | |
download | mongo-6af8365495692b330f1ec8a93c5f172817f7a7c3.tar.gz |
stepdown is rejected if other nodes are not up-to-date SERVER-2869
add force : true option to force stepdown
Diffstat (limited to 'jstests/replsets/replsetfreeze.js')
-rw-r--r-- | jstests/replsets/replsetfreeze.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/replsetfreeze.js b/jstests/replsets/replsetfreeze.js index 3721ba599f8..70963497a0d 100644 --- a/jstests/replsets/replsetfreeze.js +++ b/jstests/replsets/replsetfreeze.js @@ -53,7 +53,7 @@ var master = replTest.getMaster(); print("2: step down m1"); try { - master.getDB("admin").runCommand({replSetStepDown : 1}); + master.getDB("admin").runCommand({replSetStepDown : 1, force : 1}); } catch(e) { print(e); @@ -80,7 +80,7 @@ master = replTest.getMaster(); print("6: step down new master"); try { - master.getDB("admin").runCommand({replSetStepDown : 1}); + master.getDB("admin").runCommand({replSetStepDown : 1, force : 1}); } catch(e) { print(e); |