FIX: Notify all processes to fallback when PostgreSQL recovers.
This commit is contained in:
parent
6ddf32da7c
commit
d06af14c26
|
@ -72,7 +72,7 @@ class PostgreSQLFallbackHandler
|
||||||
|
|
||||||
if is_connection_active
|
if is_connection_active
|
||||||
logger.warn "#{log_prefix}: Master server is active. Reconnecting..."
|
logger.warn "#{log_prefix}: Master server is active. Reconnecting..."
|
||||||
clear_connections
|
MessageBus.publish(DATABASE_DOWN_CHANNEL, db: namespace)
|
||||||
self.master_up(key)
|
self.master_up(key)
|
||||||
disable_readonly_mode
|
disable_readonly_mode
|
||||||
Sidekiq.unpause!
|
Sidekiq.unpause!
|
||||||
|
|
Loading…
Reference in New Issue