diff options
Diffstat (limited to 'jstests/sharding/update_compound_shard_key.js')
-rw-r--r-- | jstests/sharding/update_compound_shard_key.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/sharding/update_compound_shard_key.js b/jstests/sharding/update_compound_shard_key.js index bf84e4179e1..a534451ae9e 100644 --- a/jstests/sharding/update_compound_shard_key.js +++ b/jstests/sharding/update_compound_shard_key.js @@ -14,13 +14,13 @@ (function() { 'use strict'; +load("jstests/sharding/libs/sharded_transactions_helpers.js"); load("jstests/sharding/libs/update_shard_key_helpers.js"); -const st = new ShardingTest({ - mongos: 1, - shards: 3, - shardOptions: {setParameter: {"coordinateCommitReturnImmediatelyAfterPersistingDecision": true}} -}); +const st = new ShardingTest({mongos: 1, shards: 3}); + +enableCoordinateCommitReturnImmediatelyAfterPersistingDecision(st); + const kDbName = 'update_compound_sk'; const ns = kDbName + '.coll'; const session = st.s.startSession({retryWrites: true}); |