mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Don't use DistributedCache to store redis readonly state
This can cause unbound CPU usage in some cases, and excessive logging in other cases. This commit moves redis readonly information into the local process, but maintains the DistributedCache for postgres readonly state.
This commit is contained in:
parent
f3e4e6941c
commit
afb5ec811d
7 changed files with 49 additions and 20 deletions
|
@ -176,7 +176,7 @@ class DiscourseRedis
|
|||
end
|
||||
|
||||
fallback_handler.verify_master if !fallback_handler.master
|
||||
Discourse.received_readonly!
|
||||
Discourse.received_redis_readonly!
|
||||
nil
|
||||
else
|
||||
raise ex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue