summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard_aware_init.js
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /jstests/sharding/shard_aware_init.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'jstests/sharding/shard_aware_init.js')
-rw-r--r--jstests/sharding/shard_aware_init.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/jstests/sharding/shard_aware_init.js b/jstests/sharding/shard_aware_init.js
index 199eb369557..5dda623bb77 100644
--- a/jstests/sharding/shard_aware_init.js
+++ b/jstests/sharding/shard_aware_init.js
@@ -40,8 +40,8 @@
mongodConn = MongoRunner.runMongod(options);
waitForMaster(mongodConn);
- var res = mongodConn.getDB('admin')
- .system.version.update({_id: 'shardIdentity'}, shardIdentityDoc);
+ var res = mongodConn.getDB('admin').system.version.update({_id: 'shardIdentity'},
+ shardIdentityDoc);
assert.eq(1, res.nModified);
MongoRunner.stopMongod(mongodConn.port);
@@ -60,8 +60,8 @@
return mongodConn;
};
- assert.writeOK(mongodConn.getDB('admin')
- .system.version.update({_id: 'shardIdentity'}, shardIdentityDoc, true));
+ assert.writeOK(mongodConn.getDB('admin').system.version.update(
+ {_id: 'shardIdentity'}, shardIdentityDoc, true));
var res = mongodConn.getDB('admin').runCommand({shardingState: 1});
@@ -98,8 +98,7 @@
waitForMaster(mongodConn);
assert.writeOK(mongodConn.getDB('admin').system.version.update(
- {_id: 'shardIdentity'},
- {_id: 'shardIdentity', shardName: 'x', clusterId: ObjectId()}));
+ {_id: 'shardIdentity'}, {_id: 'shardIdentity', shardName: 'x', clusterId: ObjectId()}));
MongoRunner.stopMongod(mongodConn.port);