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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timestampsBuf := shard.timestampsBuf
|
||||||
timestampsBufLen := len(shard.timestampsBuf)
|
timestampsBufLen := len(shard.timestampsBuf)
|
||||||
shard.timestampsBuf = append(shard.timestampsBuf, timestamps...)
|
timestampsBuf = append(timestampsBuf, timestamps...)
|
||||||
shard.stateSizeBudget -= (len(timestamps) - timestampsBufLen) * int(unsafe.Sizeof(timestamps[0]))
|
shard.timestampsBuf = timestampsBuf
|
||||||
|
|
||||||
|
shard.stateSizeBudget -= (len(timestampsBuf) - timestampsBufLen) * int(unsafe.Sizeof(timestampsBuf[0]))
|
||||||
|
|
||||||
return shard.timestampsBuf[timestampsBufLen:]
|
return shard.timestampsBuf[timestampsBufLen:]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue