Permalink
Browse files

minor: removed unnecessary reference to @slave_okay

  • Loading branch information...
1 parent b496f23 commit 13a53f255436f3e9a9c01434c15f34669af48b93 @banker banker committed Jun 15, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/mongo/repl_set_connection.rb
@@ -89,7 +89,6 @@ def initialize(*args)
# Are we allowing reads from secondaries?
@read_secondary = opts.fetch(:read_secondary, false)
- @slave_okay = false
setup(opts)
end
@@ -186,7 +185,7 @@ def reset_connection
#
# @return [Boolean]
def slave_ok?
- @read_secondary || @slave_ok
+ @read_secondary
end
def authenticate_pools

0 comments on commit 13a53f2

Please sign in to comment.