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/replset3.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/replset3.js')
-rw-r--r-- | jstests/replsets/replset3.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/replset3.js b/jstests/replsets/replset3.js index faa0627ff95..ba08eac1cd0 100644 --- a/jstests/replsets/replset3.js +++ b/jstests/replsets/replset3.js @@ -29,7 +29,7 @@ doTest = function (signal) { // Step down master. Note: this may close our connection!
try {
- master.getDB("admin").runCommand({ replSetStepDown: true });
+ master.getDB("admin").runCommand({ replSetStepDown: true, force: 1 });
} catch (err) {
print("caught: " + err + " on stepdown");
}
|