Skip to content

Commit

Permalink
Merge pull request mongoid#76 from mathieuravaux/patch-1
Browse files Browse the repository at this point in the history
Fixed a typo in the query failure handler of Node
  • Loading branch information
durran committed Sep 24, 2012
2 parents 21fc8ae + 99e87f2 commit 7e20b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moped/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def query(database, collection, selector, options = {})

process(operation) do |reply|
if reply.query_failed?
if reply.unauthorized? && auth.has_key?[database]
if reply.unauthorized? && auth.has_key?(database)
# If we got here, most likely this is the case of Moped
# authenticating successfully against the node originally, but the
# node has been reset or gone down and come back up. The most
Expand Down

0 comments on commit 7e20b3d

Please sign in to comment.