initializing query_run and closed before they are first used

This commit is contained in:
Evgeny Shadchnev 2010-10-27 10:01:44 +01:00 committed by Kyle Banker
parent b1fe3767f2
commit af0822f476
1 changed files with 2 additions and 2 deletions

View File

@ -50,12 +50,12 @@ module Mongo
@explain = options[:explain]
@socket = options[:socket]
@tailable = options[:tailable] || false
@closed = false
@query_run = false
batch_size(options[:batch_size] || 0)
@full_collection_name = "#{@collection.db.name}.#{@collection.name}"
@cache = []
@closed = false
@query_run = false
@returned = 0
end