diff --git a/lib/mongo/repl_set_connection.rb b/lib/mongo/repl_set_connection.rb index 840a1bf88f..a0541dac0d 100644 --- a/lib/mongo/repl_set_connection.rb +++ b/lib/mongo/repl_set_connection.rb @@ -306,11 +306,11 @@ def slave_ok? end def authenticate_pools - pools.each { |pool| pool.authenticate_existing } + @manager.pools.each { |pool| pool.authenticate_existing } end def logout_pools(db) - pools.each { |pool| pool.logout_existing(db) } + @manager.pools.each { |pool| pool.logout_existing(db) } end # Generic socket checkout