Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Aug 14, 2023
1 parent 3f8bcc9 commit 45f2f2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion statistics/merge_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ type topnStatsMergeWorker struct {
respCh chan<- *TopnStatsMergeResponse
// the stats in the wrapper should only be read during the worker
statsWrapper *StatsWrapper
shardMutex []sync.Mutex
// shardMutex is used to protect `statsWrapper.AllHg`
shardMutex []sync.Mutex
}

// NewTopnStatsMergeWorker returns topn merge worker
Expand Down

0 comments on commit 45f2f2f

Please sign in to comment.