mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
lib/logstorage: re-use per-shard fields across processed blocks in pipePackJSON and pipeUnroll
This commit is contained in:
parent
1882957585
commit
0b629ce5a5
@ -104,6 +104,7 @@ func (ppp *pipePackJSONProcessor) writeBlock(workerID uint, br *blockResult) {
|
||||
v := bytesutil.ToUnsafeString(buf[bufLen:])
|
||||
shard.rc.addValue(v)
|
||||
}
|
||||
shard.fields = fields
|
||||
|
||||
br.addResultColumn(&shard.rc)
|
||||
ppp.ppNext.writeBlock(workerID, br)
|
||||
|
@ -201,6 +201,7 @@ func (shard *pipeUnrollProcessorShard) writeUnrolledFields(br *blockResult, fiel
|
||||
}
|
||||
shard.wctx.writeRow(rowIdx, fields)
|
||||
}
|
||||
shard.fields = fields
|
||||
}
|
||||
|
||||
func (pup *pipeUnrollProcessor) flush() error {
|
||||
|
Loading…
Reference in New Issue
Block a user