mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
forgot to reconnect logster post fork
This commit is contained in:
parent
0334179c6e
commit
d648b04eef
|
@ -245,10 +245,12 @@ module Discourse
|
||||||
SiteSetting.after_fork
|
SiteSetting.after_fork
|
||||||
$redis.client.reconnect
|
$redis.client.reconnect
|
||||||
Rails.cache.reconnect
|
Rails.cache.reconnect
|
||||||
|
Logster.store.redis.reconnect
|
||||||
# shuts down all connections in the pool
|
# shuts down all connections in the pool
|
||||||
Sidekiq.redis_pool.shutdown{|c| nil}
|
Sidekiq.redis_pool.shutdown{|c| nil}
|
||||||
# re-establish
|
# re-establish
|
||||||
Sidekiq.redis = sidekiq_redis_config
|
Sidekiq.redis = sidekiq_redis_config
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.sidekiq_redis_config
|
def self.sidekiq_redis_config
|
||||||
|
|
Loading…
Reference in New Issue
Block a user