mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
56c115c455
commit
45639b1400
2 changed files with 4 additions and 1 deletions
|
@ -296,6 +296,7 @@ func (spp *pipeStatsProcessor) flush() error {
|
|||
|
||||
var values []string
|
||||
var br blockResult
|
||||
zeroTimestamps := []int64{0}
|
||||
for key, spg := range m {
|
||||
// m may be quite big, so this loop can take a lot of time and CPU.
|
||||
// Stop processing data as soon as stopCh is closed without wasting additional CPU time.
|
||||
|
@ -321,6 +322,7 @@ func (spp *pipeStatsProcessor) flush() error {
|
|||
}
|
||||
|
||||
br.reset()
|
||||
br.timestamps = zeroTimestamps
|
||||
|
||||
// construct columns for byFields
|
||||
for i, f := range byFields {
|
||||
|
|
|
@ -68,7 +68,8 @@ func (s *Storage) RunQuery(ctx context.Context, tenantIDs []TenantID, q *Query,
|
|||
csDst := brs.cs
|
||||
|
||||
csSrc := br.getColumns()
|
||||
for _, c := range csSrc {
|
||||
for i := range csSrc {
|
||||
c := &csSrc[i]
|
||||
values := c.getValues(br)
|
||||
csDst = append(csDst, BlockColumn{
|
||||
Name: c.name,
|
||||
|
|
Loading…
Reference in a new issue