summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/shardingtest.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/shell/shardingtest.js b/src/mongo/shell/shardingtest.js
index 4ee608d1852..f814a02cbf4 100644
--- a/src/mongo/shell/shardingtest.js
+++ b/src/mongo/shell/shardingtest.js
@@ -217,8 +217,12 @@ var ShardingTest = function(params) {
if (!otherParams.enableBalancer) {
self.stopBalancer();
}
+
if (!otherParams.enableAutoSplit) {
self.disableAutoSplit();
+ } else if (!otherParams.enableBalancer) {
+ // Turn on autoSplit since disabling balancer also turns auto split off.
+ self.enableAutoSplit();
}
}
@@ -1564,6 +1568,8 @@ var ShardingTest = function(params) {
// the instances and then log them out again.
if (keyFile) {
authutil.asCluster(this._mongos, keyFile, _configureCluster);
+ } else if (mongosOptions[0] && mongosOptions[0].keyFile) {
+ authutil.asCluster(this._mongos, mongosOptions[0].keyFile, _configureCluster);
} else {
_configureCluster();
}