mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Make sure we write inside a lock.
This commit is contained in:
parent
1253afdf95
commit
c344bd3fd1
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user