FIX: Force ActiveRecord reading role if Redis is down.
This commit is contained in:
parent
cbe1dd8ec7
commit
f03c7a1ba1
|
@ -57,8 +57,9 @@ if defined?(RailsFailover::ActiveRecord)
|
|||
rescue => e
|
||||
unless e.is_a?(Redis::CannotConnectError)
|
||||
Rails.logger.warn "#{e.class} #{e.message}: #{e.backtrace.join("\n")}"
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
|
||||
false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue