FIX: Notify all processes to fallback when PostgreSQL recovers.

This commit is contained in:
Guo Xiang Tan 2018-06-11 15:10:28 +08:00
parent 6ddf32da7c
commit d06af14c26
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class PostgreSQLFallbackHandler
if is_connection_active
logger.warn "#{log_prefix}: Master server is active. Reconnecting..."
clear_connections
MessageBus.publish(DATABASE_DOWN_CHANNEL, db: namespace)
self.master_up(key)
disable_readonly_mode
Sidekiq.unpause!