FIX: Use a distributed cache to store failover state.

This commit is contained in:
Guo Xiang Tan 2017-10-20 05:45:09 +08:00
parent d77ef05ee1
commit c7402ef794

View File

@ -7,7 +7,7 @@ class PostgreSQLFallbackHandler
include Singleton
def initialize
@masters_down = {}
@masters_down = DistributedCache.new('masters_down')
@mutex = Mutex.new
end