Skip to content

Commit

Permalink
fix(tsdb): correctly use bit prefix calculation in tsdb shard matching (
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-d authored and rhnasc committed Apr 12, 2024
1 parent 42a5621 commit 21d8fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logql/shards.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 21d8fe6

Please sign in to comment.