summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-02-19 14:29:24 -0500
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-02-21 19:45:56 -0500
commit4ac8553ce4e6cb07e0615b9c236abe18c430d68f (patch)
tree7eceaa1d04db8aee05e06c58aa5d6549c4518f7d /jstests
parentf96809265b1cac1643d007ae0d80c3ceb1f594ee (diff)
downloadmongo-4ac8553ce4e6cb07e0615b9c236abe18c430d68f.tar.gz
SERVER-39647 Delete duplicate documents before committing the _id index during initial sync
Diffstat (limited to 'jstests')
-rw-r--r--jstests/replsets/initial_sync_move_forward.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_move_forward.js b/jstests/replsets/initial_sync_move_forward.js
index 17f12a881d0..070e3243be5 100644
--- a/jstests/replsets/initial_sync_move_forward.js
+++ b/jstests/replsets/initial_sync_move_forward.js
@@ -38,7 +38,7 @@
assert.commandWorked(masterColl.ensureIndex({x: 1}, {unique: true}));
// Add a secondary.
- var secondary = rst.add();
+ var secondary = rst.add({setParameter: "numInitialSyncAttempts=1"});
secondary.setSlaveOk();
var secondaryColl = secondary.getDB("test").coll;