fix bach size for weird cases
This commit is contained in:
@@ -34,6 +34,8 @@ namespace mongo {
|
||||
_options = q.queryOptions;
|
||||
_fields = q.fields;
|
||||
_batchSize = q.ntoreturn;
|
||||
if ( _batchSize == 1 )
|
||||
_batchSize = 2;
|
||||
|
||||
_done = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user