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 4646* [ BUGFIX] Query Frontend: Fix query frontend per ` user ` metrics clean up. #6698
4747* [ BUGFIX] Add ` __markers__ ` tenant ID validation. #6761
4848* [ BUGFIX] Ring: Fix nil pointer exception when token is shared. #6768
49+ * [ BUGFIX] Fix race condition in active user. #6773
4950
5051## 1.19.0 2025-02-27
5152
Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ func (m *ActiveUsers) PurgeInactiveUsers(deadline int64) []string {
9595}
9696
9797func (m * ActiveUsers ) ActiveUsers (deadline int64 ) []string {
98- active := make ([]string , 0 , len (m .timestamps ))
9998 m .mu .RLock ()
99+ active := make ([]string , 0 , len (m .timestamps ))
100100 defer m .mu .RUnlock ()
101101 for userID , ts := range m .timestamps {
102102 if ts .Load () > deadline {
You can’t perform that action at this time.
0 commit comments