From 326cf83eb407600e7c4809b4a7e5901c76f03598 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 8 May 2021 20:14:11 +0300 Subject: [PATCH] lib/storage: remove dead code after the commit 3ccf7ea20c62c04211bd2db334301fbe83491e8d --- lib/storage/index_db.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index 973a3eed0a..0b4e702dee 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