summaryrefslogtreecommitdiff
path: root/jstests/sharding/auto2.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-08-02 12:05:43 -0400
committerEliot Horowitz <eliot@10gen.com>2010-08-02 12:05:43 -0400
commit0df9b62d4c5ed00d69d6fe414d1289b5c7bbf6df (patch)
treebffef1c63439c4774d02f5210e2aa200a04de296 /jstests/sharding/auto2.js
parent57b9d10710db98fc1750260cf97f2bc29a71aa6a (diff)
downloadmongo-0df9b62d4c5ed00d69d6fe414d1289b5c7bbf6df.tar.gz
fix test from cursor change
Diffstat (limited to 'jstests/sharding/auto2.js')
-rw-r--r--jstests/sharding/auto2.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/auto2.js b/jstests/sharding/auto2.js
index aaadb13810e..5ac9cd990e4 100644
--- a/jstests/sharding/auto2.js
+++ b/jstests/sharding/auto2.js
@@ -102,14 +102,14 @@ for ( i =0; i<100; i++ )
t.save( { _id : i } );
for ( i=0; i<100; i++ ){
t.find().batchSize( 2 ).next();
- assert.lt( 0 , db.runCommand( "cursorInfo" ).total , "cursor1" );
+ assert.lt( 0 , db.runCommand( "cursorInfo" ).totalOpen , "cursor1" );
gc();
}
for ( i=0; i<100; i++ ){
gc();
}
-assert.eq( 0 , db.runCommand( "cursorInfo" ).total , "cursor2" );
+assert.eq( 0 , db.runCommand( "cursorInfo" ).totalOpen , "cursor2" );
print( "checkpoint E")