mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/netstorage: cleanup after 92630c1ab4
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2896
This commit is contained in:
parent
db049fed84
commit
43185353bc
1 changed files with 2 additions and 4 deletions
|
@ -198,11 +198,9 @@ func (rss *Results) RunParallel(qt *querytracer.Tracer, f func(rs *Result, worke
|
|||
// Spin up up to gomaxprocs local workers and split work equally among them.
|
||||
// This guarantees linear scalability with the increase of gomaxprocs
|
||||
// (e.g. the number of available CPU cores).
|
||||
workers := len(rss.packedTimeseries)
|
||||
itemsPerWorker := 1
|
||||
if workers > gomaxprocs {
|
||||
itemsPerWorker = 1 + workers/gomaxprocs
|
||||
workers = gomaxprocs
|
||||
if len(rss.packedTimeseries) > gomaxprocs {
|
||||
itemsPerWorker = 1 + len(rss.packedTimeseries)/gomaxprocs
|
||||
}
|
||||
var start int
|
||||
var i uint
|
||||
|
|
Loading…
Reference in a new issue