summaryrefslogtreecommitdiff
path: root/jstests/replsets/stepdown.js
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-07-19 10:46:48 -0400
committerdwight <dwight@10gen.com>2011-07-19 10:46:48 -0400
commitd5b424de15da09f13ddfb8e1c10cd39a06bf5907 (patch)
treee32de702ada6cabfa5ddd12bd39bc4e5b31e6ec6 /jstests/replsets/stepdown.js
parentfe780890af176df004060960e668c633af5d2a21 (diff)
downloadmongo-d5b424de15da09f13ddfb8e1c10cd39a06bf5907.tar.gz
comment
Diffstat (limited to 'jstests/replsets/stepdown.js')
-rw-r--r--jstests/replsets/stepdown.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/replsets/stepdown.js b/jstests/replsets/stepdown.js
index d6db89a1997..c9c76a4236b 100644
--- a/jstests/replsets/stepdown.js
+++ b/jstests/replsets/stepdown.js
@@ -1,4 +1,7 @@
-
+/* check that on a loss of primary, another node doesn't assume primary if it is stale
+ we force a stepDown to test this
+ we use lock+fsync to force secondary to be stale
+*/
var replTest = new ReplSetTest({ name: 'testSet', nodes: 2 });
var nodes = replTest.startSet();