summaryrefslogtreecommitdiff
path: root/jstests/sharding/libs
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:42:24 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-26 18:42:24 -0400
commitc1a45ebbb0530e3d0201321d725527f1eb83ffce (patch)
treef523079dc5ded3052eefbdcaae424b7502df5b25 /jstests/sharding/libs
parentc9599d8610c3da0b7c3da65667aff821063cf5b9 (diff)
downloadmongo-c1a45ebbb0530e3d0201321d725527f1eb83ffce.tar.gz
Apply formatting per `clang-format-7.0.1`
Diffstat (limited to 'jstests/sharding/libs')
-rw-r--r--jstests/sharding/libs/sharded_transactions_helpers.js48
1 files changed, 24 insertions, 24 deletions
diff --git a/jstests/sharding/libs/sharded_transactions_helpers.js b/jstests/sharding/libs/sharded_transactions_helpers.js
index 1355e9610f0..dc49b839e30 100644
--- a/jstests/sharding/libs/sharded_transactions_helpers.js
+++ b/jstests/sharding/libs/sharded_transactions_helpers.js
@@ -13,27 +13,27 @@ function getCoordinatorFailpoints() {
const coordinatorFailpointDataArr = [
{failpoint: "hangBeforeWritingParticipantList", numTimesShouldBeHit: 1},
{
- // Test targeting remote nodes for prepare
- failpoint: "hangWhileTargetingRemoteHost",
- numTimesShouldBeHit: 2 /* once per remote participant */
+ // Test targeting remote nodes for prepare
+ failpoint: "hangWhileTargetingRemoteHost",
+ numTimesShouldBeHit: 2 /* once per remote participant */
},
{
- // Test targeting local node for prepare
- failpoint: "hangWhileTargetingLocalHost",
- numTimesShouldBeHit: 1
+ // Test targeting local node for prepare
+ failpoint: "hangWhileTargetingLocalHost",
+ numTimesShouldBeHit: 1
},
{failpoint: "hangBeforeWritingDecision", numTimesShouldBeHit: 1},
{
- // Test targeting remote nodes for decision
- failpoint: "hangWhileTargetingRemoteHost",
- numTimesShouldBeHit: 2, /* once per remote participant */
- skip: 2 /* to skip when the failpoint is hit for prepare */
+ // Test targeting remote nodes for decision
+ failpoint: "hangWhileTargetingRemoteHost",
+ numTimesShouldBeHit: 2, /* once per remote participant */
+ skip: 2 /* to skip when the failpoint is hit for prepare */
},
{
- // Test targeting local node for decision
- failpoint: "hangWhileTargetingLocalHost",
- numTimesShouldBeHit: 1,
- skip: 1 /* to skip when the failpoint is hit for prepare */
+ // Test targeting local node for decision
+ failpoint: "hangWhileTargetingLocalHost",
+ numTimesShouldBeHit: 1,
+ skip: 1 /* to skip when the failpoint is hit for prepare */
},
{failpoint: "hangBeforeDeletingCoordinatorDoc", numTimesShouldBeHit: 1},
];
@@ -70,16 +70,16 @@ function assertNoSuchTransactionOnAllShards(st, lsid, txnNumber) {
}
function assertNoSuchTransactionOnConn(conn, lsid, txnNumber) {
- assert.commandFailedWithCode(conn.getDB("foo").runCommand({
- find: "bar",
- lsid: lsid,
- txnNumber: NumberLong(txnNumber),
- autocommit: false,
- }),
- ErrorCodes.NoSuchTransaction,
- "expected there to be no active transaction on shard, lsid: " +
- tojson(lsid) + ", txnNumber: " + tojson(txnNumber) +
- ", connection: " + tojson(conn));
+ assert.commandFailedWithCode(
+ conn.getDB("foo").runCommand({
+ find: "bar",
+ lsid: lsid,
+ txnNumber: NumberLong(txnNumber),
+ autocommit: false,
+ }),
+ ErrorCodes.NoSuchTransaction,
+ "expected there to be no active transaction on shard, lsid: " + tojson(lsid) +
+ ", txnNumber: " + tojson(txnNumber) + ", connection: " + tojson(conn));
}
function waitForFailpoint(hitFailpointStr, numTimes) {