mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
FIX: Remove unused code.
This commit is contained in:
parent
f794c25f60
commit
1e7de826dc
1 changed files with 0 additions and 5 deletions
|
@ -39,10 +39,6 @@ class PostgreSQLFallbackHandler
|
|||
synchronize { @masters_down.delete(namespace) }
|
||||
end
|
||||
|
||||
def running?
|
||||
synchronize { @thread.alive? }
|
||||
end
|
||||
|
||||
def initiate_fallback_to_master
|
||||
@masters_down.keys.each do |key|
|
||||
RailsMultisite::ConnectionManagement.with_connection(key) do
|
||||
|
@ -59,7 +55,6 @@ class PostgreSQLFallbackHandler
|
|||
Discourse.disable_readonly_mode
|
||||
end
|
||||
rescue => e
|
||||
byebug
|
||||
logger.warn "#{log_prefix}: Connection to master PostgreSQL server failed with '#{e.message}'"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue