mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 00:16:41 +08:00
FIX: Make sure we write inside a lock.
This commit is contained in:
parent
1253afdf95
commit
c344bd3fd1
@ -39,8 +39,10 @@ class PostgreSQLFallbackHandler
|
||||
raise e
|
||||
end
|
||||
ensure
|
||||
@last_check = Time.zone.now
|
||||
@running = false
|
||||
@mutex.synchronize do
|
||||
@last_check = Time.zone.now
|
||||
@running = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user