Skip to content

Commit

Permalink
add rlock for liveProcesses
Browse files Browse the repository at this point in the history
  • Loading branch information
kenanfarukcakir committed Jun 10, 2024
1 parent 5c0d8b5 commit 898bf3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aggregator/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,8 @@ func (a *Aggregator) updateSocketMap(ctx context.Context) {
ticker := time.NewTicker(3 * time.Minute)

f := func() {
a.liveProcessesMu.RLock()
defer a.liveProcessesMu.RUnlock()
for pid := range a.liveProcesses {
sockMap := a.clusterInfo.SocketMaps[pid]
if sockMap.mu == nil {
Expand Down

0 comments on commit 898bf3a

Please sign in to comment.