DEV: Bump rails_failover.

This commit is contained in:
Guo Xiang Tan
2020-05-29 09:02:34 +08:00
parent c7d75bc3a0
commit 3b311f6b15
2 changed files with 5 additions and 1 deletions

View File

@ -661,6 +661,10 @@ module Discourse
# re-establish
Sidekiq.redis = sidekiq_redis_config
if ENV['ACTIVE_RECORD_RAILS_FAILOVER']
RailsFailover::ActiveRecord.after_fork
end
# in case v8 was initialized we want to make sure it is nil
PrettyText.reset_context