diff options
author | Moustafa Maher <m.maher@10gen.com> | 2021-04-29 01:19:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-29 23:07:54 +0000 |
commit | 0d97b041970929e7e56caa42ee8837cec92d2264 (patch) | |
tree | 3508368450bd271faed556cfb298624da9cb9543 /jstests/replsets/speculative_transaction.js | |
parent | 15fb9ff89f2074704735c0a8629d0013b530747b (diff) | |
download | mongo-0d97b041970929e7e56caa42ee8837cec92d2264.tar.gz |
SERVER-55703 Update getDefaultRWConcern
Diffstat (limited to 'jstests/replsets/speculative_transaction.js')
-rw-r--r-- | jstests/replsets/speculative_transaction.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/speculative_transaction.js b/jstests/replsets/speculative_transaction.js index e138612dcd1..60cab2ac951 100644 --- a/jstests/replsets/speculative_transaction.js +++ b/jstests/replsets/speculative_transaction.js @@ -20,6 +20,9 @@ const primary = rst.getPrimary(); const secondary = rst.getSecondary(); var testDB = primary.getDB(dbName); const coll = testDB[collName]; +// The default WC is majority and stopServerReplication will prevent satisfying any majority writes. +assert.commandWorked(primary.adminCommand( + {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}})); function runTest(sessionOptions) { testDB.runCommand({drop: collName, writeConcern: {w: "majority"}}); |