mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FIX: Use exact patht to ensure we always redirect with the right format.
This commit is contained in:
@ -119,14 +119,7 @@ module ActiveRecord
|
||||
|
||||
def verify_replica(connection)
|
||||
value = connection.raw_connection.exec("SELECT pg_is_in_recovery()").values[0][0]
|
||||
|
||||
if !value
|
||||
begin
|
||||
raise "Replica database server is not in recovery mode."
|
||||
ensure
|
||||
connection.close
|
||||
end
|
||||
end
|
||||
raise "Replica database server is not in recovery mode." if !value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user