mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: do not modify filterLoopsCount stats with loopsCount stats
Such a modification can result in incorrect filter sorting later
This commit is contained in:
parent
f104f3eb2a
commit
576a80b3d9
1 changed files with 0 additions and 8 deletions
|
@ -2833,16 +2833,8 @@ func (is *indexSearch) getMetricIDsForDateAndFilters(date uint64, tfs *TagFilter
|
|||
return int64Max
|
||||
}
|
||||
storeLoopsCount := func(tfw *tagFilterWithWeight, loopsCount int64) {
|
||||
needStore := false
|
||||
if loopsCount != tfw.loopsCount {
|
||||
tfw.loopsCount = loopsCount
|
||||
needStore = true
|
||||
}
|
||||
if loopsCount > tfw.filterLoopsCount {
|
||||
tfw.filterLoopsCount = loopsCount
|
||||
needStore = true
|
||||
}
|
||||
if needStore {
|
||||
is.storeLoopsCountForDateFilter(date, tfw.tf, tfw.loopsCount, tfw.filterLoopsCount)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue