Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* [BUGFIX] Query Frontend: Fix query frontend per `user` metrics clean up. #6698
* [BUGFIX] Add `__markers__` tenant ID validation. #6761
* [BUGFIX] Ring: Fix nil pointer exception when token is shared. #6768
* [BUGFIX] Fix race condition in active user. #6773

## 1.19.0 2025-02-27

Expand Down
2 changes: 1 addition & 1 deletion pkg/util/active_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ func (m *ActiveUsers) PurgeInactiveUsers(deadline int64) []string {
}

func (m *ActiveUsers) ActiveUsers(deadline int64) []string {
active := make([]string, 0, len(m.timestamps))
m.mu.RLock()
active := make([]string, 0, len(m.timestamps))
defer m.mu.RUnlock()
for userID, ts := range m.timestamps {
if ts.Load() > deadline {
Expand Down
Loading