summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-03-28 15:19:20 -0400
committerMathias Stearn <mathias@10gen.com>2014-03-30 12:42:58 -0400
commit7810679187eb5bd82de81cc8f152e36ec38f2c4b (patch)
treeb6d6adfff2983a417c5b9402b4b16cfe0efc4da4
parent2ed3157c0c78d603116d96b36750d7f8463c3139 (diff)
downloadmongo-7810679187eb5bd82de81cc8f152e36ec38f2c4b.tar.gz
Increase oplog size for test
(cherry picked from commit 192fd947da5ba99e4a06c769670b08cc9820f955)
-rw-r--r--jstests/replsets/index_restart_secondary.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/jstests/replsets/index_restart_secondary.js b/jstests/replsets/index_restart_secondary.js
index 92b43d2bfd5..15205fa2e50 100644
--- a/jstests/replsets/index_restart_secondary.js
+++ b/jstests/replsets/index_restart_secondary.js
@@ -4,7 +4,12 @@
* index build restarts after secondary restarts
*/
-var replTest = new ReplSetTest({ name: 'fgIndex', nodes: 3 });
+var replTest = new ReplSetTest({
+ name: 'fgIndex',
+ nodes: 3,
+ oplogSize: 100, // This test inserts enough data to wrap the default 40MB oplog.
+});
+
var nodes = replTest.nodeList();
// We need an arbiter to ensure that the primary doesn't step down when we restart the secondary