summaryrefslogtreecommitdiff
path: root/jstests/httpinterface
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:20:35 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-27 11:02:23 -0400
commit134a4083953270e8a11430395357fb70a29047ad (patch)
treedd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/httpinterface
parent1e46b5049003f427047e723ea5fab15b5a9253ca (diff)
downloadmongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/httpinterface')
-rw-r--r--jstests/httpinterface/sharding_configdb_on_default_ports.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/jstests/httpinterface/sharding_configdb_on_default_ports.js b/jstests/httpinterface/sharding_configdb_on_default_ports.js
index 4ea1c461304..c8265245003 100644
--- a/jstests/httpinterface/sharding_configdb_on_default_ports.js
+++ b/jstests/httpinterface/sharding_configdb_on_default_ports.js
@@ -10,20 +10,20 @@
// CSRS config servers.
(function() {
- "use strict";
+"use strict";
- function getHostPart(hostAndPort) {
- return hostAndPort.substr(0, hostAndPort.lastIndexOf(':'));
- }
- var c1, c2, c3;
+function getHostPart(hostAndPort) {
+ return hostAndPort.substr(0, hostAndPort.lastIndexOf(':'));
+}
+var c1, c2, c3;
- // The config servers must support readConcern: majority to be run as a replica set, so
- // explicitly set storage engine to wiredTiger.
- c1 = MongoRunner.runMongod(
- {configsvr: "", port: 27019, replSet: "csrs", storageEngine: "wiredTiger"});
- assert.commandWorked(c1.adminCommand("replSetInitiate"));
- c2 = MongoRunner.runMongod({configsvr: "", storageEngine: "wiredTiger"});
- c3 = MongoRunner.runMongod({configsvr: "", storageEngine: "wiredTiger"});
+// The config servers must support readConcern: majority to be run as a replica set, so
+// explicitly set storage engine to wiredTiger.
+c1 = MongoRunner.runMongod(
+ {configsvr: "", port: 27019, replSet: "csrs", storageEngine: "wiredTiger"});
+assert.commandWorked(c1.adminCommand("replSetInitiate"));
+c2 = MongoRunner.runMongod({configsvr: "", storageEngine: "wiredTiger"});
+c3 = MongoRunner.runMongod({configsvr: "", storageEngine: "wiredTiger"});
- assert(MongoRunner.runMongos({configdb: "csrs/" + getHostPart(c1.host)}));
+assert(MongoRunner.runMongos({configdb: "csrs/" + getHostPart(c1.host)}));
}());