diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index 973a3eed0..0b4e702de 100644 --- a/lib/storage/index_db.go +++ b/lib/storage/index_db.go @@ -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