Skip to content

Commit

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

Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper authored Mar 2, 2025
1 parent 2ff657f commit c368113
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 @@ -246,8 +246,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 c368113

Please sign in to comment.