mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 09:52:44 +08:00
Clear read only timestamp in Redis when switching back to master.
This commit is contained in:
parent
67a137b03c
commit
f891430f32
|
@ -39,6 +39,7 @@ class PostgreSQLFallbackHandler
|
|||
end
|
||||
|
||||
Discourse.disable_readonly_mode
|
||||
Discourse.clear_readonly!
|
||||
self.master = true
|
||||
end
|
||||
rescue => e
|
||||
|
|
Loading…
Reference in New Issue
Block a user