mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FIX: Ensure a Thread is always running.
This commit is contained in:
parent
b8441fba27
commit
f794c25f60
@ -101,6 +101,8 @@ module ActiveRecord
|
||||
config = config.symbolize_keys
|
||||
|
||||
if fallback_handler.master_down?
|
||||
fallback_handler.verify_master
|
||||
|
||||
connection = postgresql_connection(config.dup.merge({
|
||||
host: config[:replica_host], port: config[:replica_port]
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user