initializing query_run and closed before they are first used
This commit is contained in:
parent
b1fe3767f2
commit
af0822f476
@ -50,12 +50,12 @@ module Mongo
|
|||||||
@explain = options[:explain]
|
@explain = options[:explain]
|
||||||
@socket = options[:socket]
|
@socket = options[:socket]
|
||||||
@tailable = options[:tailable] || false
|
@tailable = options[:tailable] || false
|
||||||
|
@closed = false
|
||||||
|
@query_run = false
|
||||||
batch_size(options[:batch_size] || 0)
|
batch_size(options[:batch_size] || 0)
|
||||||
|
|
||||||
@full_collection_name = "#{@collection.db.name}.#{@collection.name}"
|
@full_collection_name = "#{@collection.db.name}.#{@collection.name}"
|
||||||
@cache = []
|
@cache = []
|
||||||
@closed = false
|
|
||||||
@query_run = false
|
|
||||||
@returned = 0
|
@returned = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user