mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
@ -195,7 +195,7 @@ before_fork do |server, worker|
|
||||
sleep 10
|
||||
force_kill_rogue_sidekiq
|
||||
end
|
||||
$redis.client.disconnect
|
||||
$redis._client.disconnect
|
||||
end
|
||||
end
|
||||
|
||||
@ -211,7 +211,7 @@ before_fork do |server, worker|
|
||||
end
|
||||
|
||||
ActiveRecord::Base.connection.disconnect!
|
||||
$redis.client.disconnect
|
||||
$redis._client.disconnect
|
||||
|
||||
# Throttle the master from forking too quickly by sleeping. Due
|
||||
# to the implementation of standard Unix signal handlers, this
|
||||
|
@ -432,7 +432,7 @@ module Discourse
|
||||
RailsMultisite::ConnectionManagement.establish_connection(db: current_db)
|
||||
MessageBus.after_fork
|
||||
SiteSetting.after_fork
|
||||
$redis.client.reconnect
|
||||
$redis._client.reconnect
|
||||
Rails.cache.reconnect
|
||||
Logster.store.redis.reconnect
|
||||
# shuts down all connections in the pool
|
||||
|
@ -229,7 +229,7 @@ class DiscourseRedis
|
||||
end
|
||||
|
||||
def reconnect
|
||||
@redis.client.reconnect
|
||||
@redis._client.reconnect
|
||||
end
|
||||
|
||||
def namespace_key(key)
|
||||
|
Reference in New Issue
Block a user