lib/storage: remove dead code after the commit 3ccf7ea20c

This commit is contained in:
Aliaksandr Valialkin 2021-05-08 20:14:11 +03:00
parent f8d50e9641
commit 75c2c813fc

View File

@ -2354,8 +2354,6 @@ func (is *indexSearch) updateMetricIDsForTagFilters(metricIDs *uint64set.Set, tf
} }
// Find intersection of minTf with other tfs. // Find intersection of minTf with other tfs.
var tfsPostponed []*tagFilter
successfulIntersects := 0
for i := range tfs.tfs { for i := range tfs.tfs {
tf := &tfs.tfs[i] tf := &tfs.tfs[i]
if tf == minTf { if tf == minTf {
@ -2366,17 +2364,6 @@ func (is *indexSearch) updateMetricIDsForTagFilters(metricIDs *uint64set.Set, tf
return err return err
} }
minMetricIDs = mIDs 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) metricIDs.UnionMayOwn(minMetricIDs)
return nil return nil