summaryrefslogtreecommitdiff
path: root/jstests/sharding/sync4.js
blob: 6733f07089da3f22455e9fd87e2c7c8a01d7ab57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

test = new SyncCCTest( "sync4" )

db = test.conn.getDB( "test" )
t = db.sync4

for ( i=0; i<1000; i++ ){
    t.insert( { _id : i , x : "asdasdsdasdas" } )
}
db.getLastError();

test.checkHashes( "test" , "A0" );
assert.eq( 1000 , t.find().count() , "A1" )
assert.eq( 1000 , t.find().itcount() , "A2" )
assert.eq( 1000 , t.find().snapshot().batchSize(10).itcount() , "A2" )



test.stop();