summaryrefslogtreecommitdiff
path: root/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/update_commit_point_from_sync_source_ignores_term.js')
-rw-r--r--jstests/replsets/update_commit_point_from_sync_source_ignores_term.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js b/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js
index 61a4c339fdf..37065be798a 100644
--- a/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js
+++ b/jstests/replsets/update_commit_point_from_sync_source_ignores_term.js
@@ -23,6 +23,10 @@ config.settings = {
};
rst.initiate(config);
+// The default WC is majority and stopServerReplication will prevent satisfying any majority writes.
+assert.commandWorked(rst.getPrimary().adminCommand(
+ {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}}));
+
const nodeA = rst.nodes[0];
const nodeB = rst.nodes[1];
const nodeC = rst.nodes[2];