Clear read only timestamp in Redis when switching back to master.

This commit is contained in:
Guo Xiang Tan
2016-05-18 10:17:03 +08:00
parent 67a137b03c
commit f891430f32

View File

@@ -39,6 +39,7 @@ class PostgreSQLFallbackHandler
end
Discourse.disable_readonly_mode
Discourse.clear_readonly!
self.master = true
end
rescue => e