mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
adcdb92b1e
commit
9f33220e51
1 changed files with 5 additions and 2 deletions
|
@ -317,9 +317,12 @@ func (shard *pipeSortProcessorShard) createTimestampsIfNeeded(timestamps []int64
|
|||
return nil
|
||||
}
|
||||
|
||||
timestampsBuf := shard.timestampsBuf
|
||||
timestampsBufLen := len(shard.timestampsBuf)
|
||||
shard.timestampsBuf = append(shard.timestampsBuf, timestamps...)
|
||||
shard.stateSizeBudget -= (len(timestamps) - timestampsBufLen) * int(unsafe.Sizeof(timestamps[0]))
|
||||
timestampsBuf = append(timestampsBuf, timestamps...)
|
||||
shard.timestampsBuf = timestampsBuf
|
||||
|
||||
shard.stateSizeBudget -= (len(timestampsBuf) - timestampsBufLen) * int(unsafe.Sizeof(timestampsBuf[0]))
|
||||
|
||||
return shard.timestampsBuf[timestampsBufLen:]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue