mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: Ensure a Thread is always running.
This commit is contained in:
@ -101,6 +101,8 @@ module ActiveRecord
|
|||||||
config = config.symbolize_keys
|
config = config.symbolize_keys
|
||||||
|
|
||||||
if fallback_handler.master_down?
|
if fallback_handler.master_down?
|
||||||
|
fallback_handler.verify_master
|
||||||
|
|
||||||
connection = postgresql_connection(config.dup.merge({
|
connection = postgresql_connection(config.dup.merge({
|
||||||
host: config[:replica_host], port: config[:replica_port]
|
host: config[:replica_host], port: config[:replica_port]
|
||||||
}))
|
}))
|
||||||
|
Reference in New Issue
Block a user