File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 46
46
* [ BUGFIX] Query Frontend: Fix query frontend per ` user ` metrics clean up. #6698
47
47
* [ BUGFIX] Add ` __markers__ ` tenant ID validation. #6761
48
48
* [ BUGFIX] Ring: Fix nil pointer exception when token is shared. #6768
49
+ * [ BUGFIX] Fix race condition in active user. #6773
49
50
50
51
## 1.19.0 2025-02-27
51
52
Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ func (m *ActiveUsers) PurgeInactiveUsers(deadline int64) []string {
95
95
}
96
96
97
97
func (m * ActiveUsers ) ActiveUsers (deadline int64 ) []string {
98
- active := make ([]string , 0 , len (m .timestamps ))
99
98
m .mu .RLock ()
99
+ active := make ([]string , 0 , len (m .timestamps ))
100
100
defer m .mu .RUnlock ()
101
101
for userID , ts := range m .timestamps {
102
102
if ts .Load () > deadline {
You can’t perform that action at this time.
0 commit comments