Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/logstorage/query_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ type QueryStats struct {

// BytesProcessedUncompressedValues is the total number of uncompressed values bytes processed during the search.
BytesProcessedUncompressedValues uint64

// IsPartial is the field for setting later the VL-Partial-Response header.
IsPartial atomic.Bool
}

// GetBytesReadTotal returns the total number of bytes read, which is tracked by qs.
Expand Down
1 change: 1 addition & 0 deletions lib/logstorage/storage_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func newQueryContext(ctx context.Context, qs *QueryStats, tenantIDs []TenantID,
if q.opts.allowPartialResponse != nil {
// query options override other settings for allowPartialResponse.
allowPartialResponse = *q.opts.allowPartialResponse
qs.IsPartial.Swap(allowPartialResponse)
}

return &QueryContext{
Expand Down