summaryrefslogtreecommitdiff
path: root/jstests/httpinterface/sharding_configdb_on_default_ports.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/httpinterface/sharding_configdb_on_default_ports.js')
-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)}));
}());