Skip to content

Commit

Permalink
Removing bloom deletion here too
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszh committed Jun 24, 2024
1 parent 12484ab commit 4b25219
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,7 @@ func (c *Cache) Pop(key string) (p *points.Points, exists bool) {
p, exists = shard.items[key]
delete(shard.items, key)
shard.Unlock()

// we probably can skip that, but I'm a bit worry
// of effectiveness of bloom filter over time
if c.newMetricsChan != nil && c.newMetricCf != nil {
c.newMetricCf.Delete([]byte(p.Metric))
}


if exists {
atomic.AddInt32(&c.stat.size, -int32(len(p.Data)))
}
Expand Down

0 comments on commit 4b25219

Please sign in to comment.