DEV: Bump rails_failover.

This commit is contained in:
Guo Xiang Tan 2020-05-29 09:02:34 +08:00
parent c7d75bc3a0
commit 3b311f6b15
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
GIT
remote: https://github.com/discourse/rails_failover
revision: ba904987444b96a3fb627ed0b145059ff9f1cf6c
revision: ab8fd97f4507a09a2084beb13cf96e77f3fcfb6e
specs:
rails_failover (0.4.0)
activerecord (~> 6.0)

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