Skip to content

Commit

Permalink
Revert "store: use loser trees"
Browse files Browse the repository at this point in the history
This reverts commit 76619d9.
  • Loading branch information
GiedriusS committed Jun 4, 2024
1 parent 0cfdd6a commit b796a26
Show file tree
Hide file tree
Showing 9 changed files with 140 additions and 402 deletions.
161 changes: 0 additions & 161 deletions pkg/losertree/tree.go

This file was deleted.

124 changes: 0 additions & 124 deletions pkg/losertree/tree_test.go

This file was deleted.

7 changes: 6 additions & 1 deletion pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1625,8 +1625,13 @@ func (s *BucketStore) Series(req *storepb.SeriesRequest, seriesSrv storepb.Store

// Merge the sub-results from each selected block.
tracing.DoInSpan(ctx, "bucket_store_merge_all", func(ctx context.Context) {
defer func() {
for _, resp := range respSets {
resp.Close()
}
}()
begin := time.Now()
set := NewResponseDeduplicator(NewProxyResponseLoserTree(respSets...))
set := NewDedupResponseHeap(NewProxyResponseHeap(respSets...))
for set.Next() {
at := set.At()
warn := at.GetWarning()
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (s *ProxyStore) Series(originalRequest *storepb.SeriesRequest, srv storepb.

level.Debug(reqLogger).Log("msg", "Series: started fanout streams", "status", strings.Join(storeDebugMsgs, ";"))

respHeap := NewResponseDeduplicator(NewProxyResponseLoserTree(storeResponses...))
respHeap := NewDedupResponseHeap(NewProxyResponseHeap(storeResponses...))
for respHeap.Next() {
resp := respHeap.At()

Expand Down
Loading

0 comments on commit b796a26

Please sign in to comment.