Skip to content

Commit

Permalink
buildbot use itcount() not count if balancer is on bigMapReduce.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gregs committed Oct 20, 2011
1 parent 42ab1fd commit 3243b68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jstests/sharding/bigMapReduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ for ( iter=0; iter<5; iter++ ){
printjson(res);

outColl = db["mrShardedOut"];
assert.eq( 51200 , outColl.count() , "Received wrong result " );
// SERVER-3645 -can't use count()
assert.eq( 51200 , outColl.find().itcount() , "Received wrong result " );
// make sure it's sharded and split
print("Number of chunks: " + config.chunks.count({ns: db.mrShardedOut._fullName}));
assert.gt( config.chunks.count({ns: db.mrShardedOut._fullName}), 1, "didnt split");
Expand Down

0 comments on commit 3243b68

Please sign in to comment.