mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: remove dead code after the commit 3ccf7ea20c
This commit is contained in:
parent
9134ed93ab
commit
326cf83eb4
1 changed files with 0 additions and 13 deletions
|
@ -2379,8 +2379,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 {
|
||||
|
@ -2391,17 +2389,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 a new issue