mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: Use a distributed cache to store failover state.
This commit is contained in:
parent
d77ef05ee1
commit
c7402ef794
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class PostgreSQLFallbackHandler
|
||||||
include Singleton
|
include Singleton
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@masters_down = {}
|
@masters_down = DistributedCache.new('masters_down')
|
||||||
@mutex = Mutex.new
|
@mutex = Mutex.new
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue