diff options
author | Moustafa Maher <m.maher@10gen.com> | 2021-05-04 21:59:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-04 22:30:37 +0000 |
commit | 0d27344b5aa86328ab437638e75175c5d7fa5739 (patch) | |
tree | 78c887e10e6cb8f88faee43bb551c3eec1cc9092 /jstests/noPassthrough/timestamp_index_builds.js | |
parent | 320e2d28396c250dfd69640dcf865dff50ea0b55 (diff) | |
download | mongo-0d27344b5aa86328ab437638e75175c5d7fa5739.tar.gz |
SERVER-55703 Fix tests to update getDefaultRWConcern to return the implicit default
Diffstat (limited to 'jstests/noPassthrough/timestamp_index_builds.js')
-rw-r--r-- | jstests/noPassthrough/timestamp_index_builds.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/noPassthrough/timestamp_index_builds.js b/jstests/noPassthrough/timestamp_index_builds.js index f7995108f34..61299bbaf4e 100644 --- a/jstests/noPassthrough/timestamp_index_builds.js +++ b/jstests/noPassthrough/timestamp_index_builds.js @@ -40,6 +40,11 @@ if (!rst.getPrimary().adminCommand("serverStatus").storageEngine.supportsSnapsho return; } +// The default WC is majority and disableSnapshotting failpoint will prevent satisfying any majority +// writes. +assert.commandWorked(rst.getPrimary().adminCommand( + {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}})); + function getColl(conn) { return conn.getDB("timestampingIndexBuild")["coll"]; } |