mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
DEV: Initialize pg access log mutex in non-sidekiq processes
Followup to be3e4ab3f5
This commit is contained in:
parent
9441362c72
commit
2bdd1275ce
@ -24,9 +24,9 @@ if ENV["TRACE_PG_CONNECTIONS"]
|
||||
FileUtils.mkdir_p(TRACE_DIR)
|
||||
@trace_filename = "#{TRACE_DIR}/#{Process.pid}_#{self.object_id}.txt"
|
||||
trace File.new(@trace_filename, "w")
|
||||
@access_log_mutex = Mutex.new
|
||||
@accessor_thread = nil
|
||||
end
|
||||
@access_log_mutex = Mutex.new
|
||||
@accessor_thread = nil
|
||||
end
|
||||
|
||||
def close
|
||||
|
Loading…
Reference in New Issue
Block a user