mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:04:11 +08:00
FIX: Use a distributed cache to store failover state.
This commit is contained in:
parent
d77ef05ee1
commit
c7402ef794
|
@ -7,7 +7,7 @@ class PostgreSQLFallbackHandler
|
|||
include Singleton
|
||||
|
||||
def initialize
|
||||
@masters_down = {}
|
||||
@masters_down = DistributedCache.new('masters_down')
|
||||
@mutex = Mutex.new
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user