Skip to content

Commit

Permalink
fix: [2.5] Fix task delta cache data race (#40262)
Browse files Browse the repository at this point in the history
issue: #40258

pr: #40259

Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper authored Mar 2, 2025
1 parent 3f76e1c commit 893caee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/querycoordv2/task/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ func (etd *ExecutingTaskDelta) printDetailInfos() {
}

func (etd *ExecutingTaskDelta) Clear() {
etd.mu.RLock()
defer etd.mu.RUnlock()
etd.mu.Lock()
defer etd.mu.Unlock()
etd.data = make(map[int64]map[int64]int)
etd.taskIDRecords.Clear()
}
Expand Down

0 comments on commit 893caee

Please sign in to comment.