default batch size should always be 0

This commit is contained in:
Mike Dirolf 2010-05-10 12:11:23 -04:00
parent 713cf73b3d
commit edd8a7104f
2 changed files with 1 additions and 3 deletions

View File

@ -24,8 +24,6 @@ module Mongo
OP_QUERY_TAILABLE = 2
OP_QUERY_SLAVE_OK = 4
OP_QUERY_NO_CURSOR_TIMEOUT = 16
DEFAULT_BATCH_SIZE = 100
end
end

View File

@ -50,7 +50,7 @@ module Mongo
@explain = options[:explain]
@socket = options[:socket]
@tailable = options[:tailable] || false
@batch_size = options[:batch_size] || Mongo::Constants::DEFAULT_BATCH_SIZE
@batch_size = options[:batch_size] || 0
@full_collection_name = "#{@collection.db.name}.#{@collection.name}"
@cache = []