summaryrefslogtreecommitdiff
path: root/jstests/sharding/geo_near_random2.js
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2012-01-03 10:51:50 -0500
committerGreg Studer <greg@10gen.com>2012-01-03 10:51:50 -0500
commit80a02d11a144b59ab5a70a5924235e9be2d7c13a (patch)
tree58ab612dae722083b235d8fe799901d7a77f928f /jstests/sharding/geo_near_random2.js
parent8e08a3d0b02c13c28189b72137cd5bd1bf87b39d (diff)
downloadmongo-80a02d11a144b59ab5a70a5924235e9be2d7c13a.tar.gz
buildbot sharding/geo_near_random1/2.js balancer must be off for manual chunk moves, otherwise it may interfere
Diffstat (limited to 'jstests/sharding/geo_near_random2.js')
-rw-r--r--jstests/sharding/geo_near_random2.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/sharding/geo_near_random2.js b/jstests/sharding/geo_near_random2.js
index 4871e1e348f..b9800274bb9 100644
--- a/jstests/sharding/geo_near_random2.js
+++ b/jstests/sharding/geo_near_random2.js
@@ -4,6 +4,8 @@ load("jstests/libs/geo_near_random.js");
var testName = "geo_near_random2";
var s = new ShardingTest( testName , 3 );
+s.stopBalancer();
+
db = s.getDB("test"); // global db
var test = new GeoNearRandomTest(testName);
@@ -25,6 +27,9 @@ for (var i = (test.nPts/10); i < test.nPts; i+= (test.nPts/10)){
}
}
+//Turn balancer back on, for actual tests
+s.setBalancer( true );
+
printShardingSizes()
opts = {sphere:0, nToTest:test.nPts*0.01, sharded:true};