mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
Should reset to false, not true when done
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -1818,7 +1818,7 @@ func (jsa *jsAccount) checkAndSyncUsage(tierName string, storeType StorageType)
|
||||
if !jsa.sync.CompareAndSwap(false, true) {
|
||||
return
|
||||
}
|
||||
defer jsa.sync.Store(true)
|
||||
defer jsa.sync.Store(false)
|
||||
|
||||
// Hold the account read lock and the usage lock while we calculate.
|
||||
// We scope by tier and storage type, but if R3 File has 200 streams etc. could
|
||||
|
||||
Reference in New Issue
Block a user