$redis.client -> $redis._client.

See c239abb43c
This commit is contained in:
Guo Xiang Tan 2018-04-20 13:01:17 +08:00
parent 9c9fa4537c
commit 45fe5dc793
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -229,7 +229,7 @@ class DiscourseRedis
end
def reconnect
@redis.client.reconnect
@redis._client.reconnect
end
def namespace_key(key)