diff options
author | William Schultz <william.schultz@mongodb.com> | 2020-05-08 10:32:55 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-08 18:00:56 +0000 |
commit | 09b1be8b2f4c69c5d942ceb2736c449cefabcb65 (patch) | |
tree | a931a324148b3d19330995a1036df829a6bd6efb /jstests/replsets/two_nodes_priority_take_over.js | |
parent | 7c89f891066bcbf7aa0c450cb3af81d11459b1e2 (diff) | |
download | mongo-09b1be8b2f4c69c5d942ceb2736c449cefabcb65.tar.gz |
SERVER-48037 Execute reconfig atomically in two_nodes_priority_takeover.js
Diffstat (limited to 'jstests/replsets/two_nodes_priority_take_over.js')
-rw-r--r-- | jstests/replsets/two_nodes_priority_take_over.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/two_nodes_priority_take_over.js b/jstests/replsets/two_nodes_priority_take_over.js index 5f4705eac0b..a0c196a773c 100644 --- a/jstests/replsets/two_nodes_priority_take_over.js +++ b/jstests/replsets/two_nodes_priority_take_over.js @@ -34,7 +34,7 @@ var conf = rst.getReplSetConfigFromNode(); conf.members[0].priority = 1; conf.members[1].priority = 2; conf.version = conf.version + 1; -reconfig(rst, conf); +assert.commandWorked(rst.getPrimary().adminCommand({replSetReconfig: conf})); // The second node will take over the primary. rst.waitForState(rst.nodes[1], ReplSetTest.State.PRIMARY, 60 * 1000); |