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 ff5e4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis/client.rb
Original file line number Diff line number Diff line change
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 ff5e4da

Please sign in to comment.