fix bach size for weird cases

This commit is contained in:
Eliot Horowitz
2010-07-23 01:10:18 -04:00
parent a4431141fd
commit 3b50ea0767

View File

@@ -34,6 +34,8 @@ namespace mongo {
_options = q.queryOptions;
_fields = q.fields;
_batchSize = q.ntoreturn;
if ( _batchSize == 1 )
_batchSize = 2;
_done = false;
}