mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
lib/storage: remove dead code after the commit 3ccf7ea20c
This commit is contained in:
parent
f8d50e9641
commit
75c2c813fc
@ -2354,8 +2354,6 @@ func (is *indexSearch) updateMetricIDsForTagFilters(metricIDs *uint64set.Set, tf
|
||||
}
|
||||
|
||||
// Find intersection of minTf with other tfs.
|
||||
var tfsPostponed []*tagFilter
|
||||
successfulIntersects := 0
|
||||
for i := range tfs.tfs {
|
||||
tf := &tfs.tfs[i]
|
||||
if tf == minTf {
|
||||
@ -2366,17 +2364,6 @@ func (is *indexSearch) updateMetricIDsForTagFilters(metricIDs *uint64set.Set, tf
|
||||
return err
|
||||
}
|
||||
minMetricIDs = mIDs
|
||||
successfulIntersects++
|
||||
}
|
||||
if len(tfsPostponed) > 0 && successfulIntersects == 0 {
|
||||
return is.updateMetricIDsByMetricNameMatch(metricIDs, minMetricIDs, tfsPostponed)
|
||||
}
|
||||
for _, tf := range tfsPostponed {
|
||||
mIDs, err := is.intersectMetricIDsWithTagFilter(tf, minMetricIDs)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
minMetricIDs = mIDs
|
||||
}
|
||||
metricIDs.UnionMayOwn(minMetricIDs)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user