mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:16:42 +00:00
app/vmselect/netstorage: prevent from deadlock at unpackUpdateAddrs() for time series with the updated data
This commit is contained in:
parent
23e53bdb80
commit
9e2d77ea62
1 changed files with 4 additions and 2 deletions
|
@ -684,9 +684,11 @@ func (pts *packedTimeseries) unpackUpdateAddrs(tbfs []*tmpBlocksFile, tr storage
|
||||||
}
|
}
|
||||||
|
|
||||||
// Spread work among worker channels.
|
// Spread work among worker channels.
|
||||||
for i, upws := range upwss {
|
i := 0
|
||||||
idx := i % len(workChs)
|
for _, upws := range upwss {
|
||||||
for _, upw := range upws {
|
for _, upw := range upws {
|
||||||
|
idx := i % len(workChs)
|
||||||
|
i++
|
||||||
workChs[idx] <- upw
|
workChs[idx] <- upw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue