Skip to content

Commit

Permalink
SERVER-36732 amend write
Browse files Browse the repository at this point in the history
  • Loading branch information
vessy-mongodb committed Sep 19, 2018
1 parent 29b72c2 commit 5f61edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jstests/replsets/libs/election_handoff.js
Expand Up @@ -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.
Expand Down

0 comments on commit 5f61edb

Please sign in to comment.