Skip to content

Commit

Permalink
Fix error "No sentinels available" when the master name is different …
Browse files Browse the repository at this point in the history
…from the host name
  • Loading branch information
NguyenDucTung committed Jun 11, 2015
1 parent 98e3e7a commit a76aafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis/client.rb
Expand Up @@ -493,7 +493,7 @@ def initialize(options)

@sentinels = @options.delete(:sentinels).dup
@role = @options.fetch(:role, "master").to_s
@master = @options[:host]
@master = @options[:master_name] || @options[:host]
end

def check(client)
Expand Down

0 comments on commit a76aafd

Please sign in to comment.