summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shardingtest.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-09-17 19:27:04 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-09-24 13:36:59 -0400
commit75f185e88b063ab13e0686552202de38618dec54 (patch)
tree3ee618d6e6c34f299c4dd65e0a77593a5a3b0b9f /src/mongo/shell/shardingtest.js
parent543f81a81d31098e464238398f5a20d1d2453b25 (diff)
downloadmongo-75f185e88b063ab13e0686552202de38618dec54.tar.gz
SERVER-20494 SERVER-20493 Change CatalogManagerReplicaSet to use Nearest read preference
Diffstat (limited to 'src/mongo/shell/shardingtest.js')
-rw-r--r--src/mongo/shell/shardingtest.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/shell/shardingtest.js b/src/mongo/shell/shardingtest.js
index d2a5f95e060..3626adec27a 100644
--- a/src/mongo/shell/shardingtest.js
+++ b/src/mongo/shell/shardingtest.js
@@ -348,6 +348,9 @@ ShardingTest = function( testName , numShards , verboseLevel , numMongos , other
var config = this.configRS.getReplSetConfig();
config.configsvr = true;
+ config.protocolVersion = 0; // SERVER-20604
+ config.settings = config.settings || {};
+ config.settings.heartbeatIntervalMillis = 100; // SERVER-20493
this.configRS.initiate(config);
this.configRS.getMaster(); // Wait for master to be elected before starting mongos