File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ private void init( Response res ){
371
371
throw new MongoException .CursorNotFound ();
372
372
}
373
373
374
- if (res ._cursor > 0 && _limit > 0 && _limit - _numFetched <= 0 ) {
374
+ if (res ._cursor != 0 && _limit > 0 && _limit - _numFetched <= 0 ) {
375
375
// fetched all docs within limit, close cursor server-side
376
376
killCursor ();
377
377
}
@@ -439,7 +439,7 @@ protected void finalize() throws Throwable {
439
439
long curId = _curResult .cursor ();
440
440
_curResult = null ;
441
441
_cur = null ;
442
- if (curId > 0 ) {
442
+ if (curId != 0 ) {
443
443
_deadCursorIds .add (new DeadCursor (curId , _host ));
444
444
}
445
445
}
@@ -477,7 +477,7 @@ void killCursor() {
477
477
if (_curResult == null )
478
478
return ;
479
479
long curId = _curResult .cursor ();
480
- if (curId < = 0 )
480
+ if (curId = = 0 )
481
481
return ;
482
482
483
483
List <Long > l = new ArrayList <Long >();
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public Iterator<DBObject> iterator(){
84
84
}
85
85
86
86
public boolean hasGetMore ( int queryOptions ){
87
- if ( _cursor < = 0 )
87
+ if ( _cursor = = 0 )
88
88
return false ;
89
89
90
90
if ( _num > 0 )
You can’t perform that action at this time.
0 commit comments