From 3922d3864a8a2af09df236bad34e6bbb053181ea Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Thu, 28 Mar 2024 17:16:42 -0700 Subject: [PATCH] fix(tsdb): correctly use bit prefix calculation in tsdb shard matching (#12394) --- pkg/logql/shards.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/logql/shards.go b/pkg/logql/shards.go index 7ca7f67cb367d..7d35cea26d761 100644 --- a/pkg/logql/shards.go +++ b/pkg/logql/shards.go @@ -159,7 +159,7 @@ func (s *Shard) Match(fp model.Fingerprint) bool { return v1.BoundsFromProto(s.Bounded.Bounds).Match(fp) } - return s.PowerOfTwo.Match(fp) + return s.PowerOfTwo.TSDB().Match(fp) } func (s *Shard) GetFromThrough() (model.Fingerprint, model.Fingerprint) {