minor: Collection#remove should access db directly.
This commit is contained in:
parent
e40d9cec3c
commit
5586d53c6a
|
@ -229,7 +229,7 @@ module Mongo
|
|||
BSON.serialize_cstr(message, "#{@db.name}.#{@name}")
|
||||
message.put_int(0)
|
||||
message.put_array(BSON.new.serialize(selector, false).to_a)
|
||||
db.send_message_with_operation(OP_DELETE, message)
|
||||
@db.send_message_with_operation(OP_DELETE, message)
|
||||
end
|
||||
|
||||
# Remove all records.
|
||||
|
|
Loading…
Reference in New Issue