diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2018-09-19 13:02:47 -0400 |
---|---|---|
committer | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2018-09-19 13:08:17 -0400 |
commit | 5f61edb2c73e569cb4b265ca8f453536e7b7b016 (patch) | |
tree | af0eac813af797a7661928473fc03ce16c08ef0e | |
parent | 29b72c2b5d1019b95bbdf8505eeeb92049739ca4 (diff) | |
download | mongo-5f61edb2c73e569cb4b265ca8f453536e7b7b016.tar.gz |
SERVER-36732 amend write
-rw-r--r-- | jstests/replsets/libs/election_handoff.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/libs/election_handoff.js b/jstests/replsets/libs/election_handoff.js index 671a237cd9b..6bb903c1b2c 100644 --- a/jstests/replsets/libs/election_handoff.js +++ b/jstests/replsets/libs/election_handoff.js @@ -46,7 +46,7 @@ var ElectionHandoffTest = (function() { // make sure that the primary is aware that the secondaries are ready and caught up // to the primary's lastApplied, so we issue a dummy write and wait on its optime. assert.writeOK(primary.getDB("test").secondariesMustBeCaughtUpToHere.insert( - {"a": 1}, {w: rst.nodes.length})); + {"a": 1}, {writeConcern: {w: rst.nodes.length}})); rst.awaitNodesAgreeOnAppliedOpTime(); // Step down the current primary. |