diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-07-06 11:52:30 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-07-06 12:58:29 -0400 |
commit | 06428575d5191ddf815e1e14867132b6bf05a683 (patch) | |
tree | 515fc14c7b4dc0f86e5350862dc6a6da9e00518e /jstests/replsets/secondary_reads_unique_indexes.js | |
parent | c17d9bc2b70e978e69b53644168cb6b183f73cea (diff) | |
download | mongo-06428575d5191ddf815e1e14867132b6bf05a683.tar.gz |
SERVER-35992 Secondary should have no vote in SecondaryReadsTest
Diffstat (limited to 'jstests/replsets/secondary_reads_unique_indexes.js')
-rw-r--r-- | jstests/replsets/secondary_reads_unique_indexes.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/jstests/replsets/secondary_reads_unique_indexes.js b/jstests/replsets/secondary_reads_unique_indexes.js index 78fceabd436..5507de4c50b 100644 --- a/jstests/replsets/secondary_reads_unique_indexes.js +++ b/jstests/replsets/secondary_reads_unique_indexes.js @@ -75,12 +75,10 @@ // Write the initial documents. Ensure they have been replicated. for (let i = 0; i < nOps; i++) { - assert.commandWorked(primaryDB.runCommand({ - insert: collName, - documents: [{_id: i, x: i, iter: 0}], - writeConcern: {w: "majority"} - })); + assert.commandWorked( + primaryDB.runCommand({insert: collName, documents: [{_id: i, x: i, iter: 0}]})); } + replSet.awaitReplication(); // Cycle the value of x in the document {_id: i, x: i} between i and i+1 each iteration. for (let iteration = 0; iteration < nIterations; iteration++) { |