Skip to content

Commit 45f2f2f

Browse files
committed
update
Signed-off-by: Weizhen Wang <[email protected]>
1 parent 3f8bcc9 commit 45f2f2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

statistics/merge_worker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ type topnStatsMergeWorker struct {
4545
respCh chan<- *TopnStatsMergeResponse
4646
// the stats in the wrapper should only be read during the worker
4747
statsWrapper *StatsWrapper
48-
shardMutex []sync.Mutex
48+
// shardMutex is used to protect `statsWrapper.AllHg`
49+
shardMutex []sync.Mutex
4950
}
5051

5152
// NewTopnStatsMergeWorker returns topn merge worker

0 commit comments

Comments
 (0)