Verified Commit 939e41b8 authored byBrowse files
Fix data race with `RedisMetrics.activeConnectionCount`
Motivation: After enabling the thread sanitizer during testing, a data race with the `activeConnectionCount` in `RedisMetrics` was caught due to changing a primitive `Int` across threads. Modifications: Add a specialized class `ActiveConnectionGauge` to wrap the semantics of the `activeConnectionCount` with an `Atomic<Int>` property. Result: No data races should occur with the `RedisMetrics` subsystem.