mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:53:42 +08:00
Revert "Guard ActionRecord::Base.exec_sql
against a readonly PostgreSQL cluster."
This reverts commit c2a5e603c2
.
This commit is contained in:
parent
c2a5e603c2
commit
9d6449ae92
|
@ -5,8 +5,6 @@ class ActiveRecord::Base
|
|||
conn = ActiveRecord::Base.connection
|
||||
sql = ActiveRecord::Base.send(:sanitize_sql_array, args)
|
||||
conn.raw_connection.exec(sql)
|
||||
rescue PG::ReadOnlySqlTransaction
|
||||
Rails.logger.warn("WARN: PostgreSQL is in a readonly state. Performed a noop")
|
||||
end
|
||||
|
||||
def self.exec_sql_row_count(*args)
|
||||
|
|
Loading…
Reference in New Issue
Block a user