mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +08: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
|
||||
end
|
||||
ensure
|
||||
@mutex.synchronize do
|
||||
@last_check = Time.zone.now
|
||||
@running = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user