diff options
Diffstat (limited to 'jstests/sharding/sync4.js')
-rw-r--r-- | jstests/sharding/sync4.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/jstests/sharding/sync4.js b/jstests/sharding/sync4.js new file mode 100644 index 00000000000..6733f07089d --- /dev/null +++ b/jstests/sharding/sync4.js @@ -0,0 +1,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(); |