Skip to content

Commit

Permalink
buildbot stop balancer before slaveOk queries to avoid dup results au…
Browse files Browse the repository at this point in the history
…th.js
  • Loading branch information
gregs committed Oct 6, 2011
1 parent deb6498 commit 9b37bd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jstests/sharding/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ assert.eq(s.getDB("test").foo.find().itcount(), num+1);

s.s.setSlaveOk();

// We're only sure we aren't duplicating documents iff there's no balancing going on here
// This call also waits for any ongoing balancing to stop
sh.stopBalancer()

var cursor = s.getDB("test").foo.find({x:{$lt : 500}});

var count = 0;
Expand Down

0 comments on commit 9b37bd7

Please sign in to comment.