summaryrefslogtreecommitdiff
path: root/jstests/slowNightly/sharding_rs1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-08-17 12:27:53 -0400
committerEliot Horowitz <eliot@10gen.com>2010-08-17 12:28:19 -0400
commitc5f5f9a4f3b515dfd5272d373093fd4fd58c95d9 (patch)
tree5568dbd7199b1ce64ace1cec26b590c1431e872d /jstests/slowNightly/sharding_rs1.js
parent19b587d9254dd79dbaaddffabe82771fb3cd108b (diff)
downloadmongo-r1.6.1.tar.gz
stabilize testr1.6.1
Diffstat (limited to 'jstests/slowNightly/sharding_rs1.js')
-rw-r--r--jstests/slowNightly/sharding_rs1.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/slowNightly/sharding_rs1.js b/jstests/slowNightly/sharding_rs1.js
index 146895342bc..b7d90ba03db 100644
--- a/jstests/slowNightly/sharding_rs1.js
+++ b/jstests/slowNightly/sharding_rs1.js
@@ -48,6 +48,7 @@ assert.soon( function(){
return d < 5;
} , "balance didn't happen" , 1000 * 60 * 3 , 5000 );
+s.config.settings.update( { _id: "balancer" }, { $set : { stopped: true } } , true );
for ( i=0; i<s._rs.length; i++ ){
r = s._rs[i];
@@ -58,6 +59,7 @@ for ( i=0; i<s._rs.length; i++ ){
assert.eq( x.master.md5 , x.slaves[j].md5 , "hashes same for: " + r.url + " slave: " + j );
}
+
assert.eq( num , db.foo.find().count() , "C1" )
assert.eq( num , db.foo.find().itcount() , "C2" )
assert.eq( num , db.foo.find().sort( { _id : 1 } ).itcount() , "C3" )