Skip to content

Commit

Permalink
Global-query also wants the DB stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Elsen committed Jun 12, 2024
1 parent 8e5ce11 commit 29e60fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/global-query/pkg/distributed/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func aggregateResults(ctx context.Context, stmt *query.Statement, queryResults <
finalResult.Summary.First = res.Summary.First
finalResult.Summary.Last = res.Summary.Last
finalResult.Summary.Totals.Add(res.Summary.Totals)
finalResult.Summary.Stats.Add(res.Summary.Stats)

// take the total from the query result. Since there may be overlap between the queries of two
// different systems, the overlap has to be deducted from the total
Expand Down

0 comments on commit 29e60fd

Please sign in to comment.