0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/cursor8.js

8 lines
261 B
JavaScript
Raw Normal View History

db.f.drop();
db.f.save( {} );
db.f.save( {} );
db.f.save( {} );
assert.eq( 0, db.runCommand( {cursorInfo:1} ).clientCursors_size );
assert.eq( 2, db.f.find( {} ).limit( 2 ).toArray().length );
assert.eq( 1, db.runCommand( {cursorInfo:1} ).clientCursors_size );