mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 16:51:25 +08:00
FIX: Make sure we write inside a lock.
This commit is contained in:
@ -39,11 +39,13 @@ class PostgreSQLFallbackHandler
|
|||||||
raise e
|
raise e
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
|
@mutex.synchronize do
|
||||||
@last_check = Time.zone.now
|
@last_check = Time.zone.now
|
||||||
@running = false
|
@running = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user