mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: allow filling all the rows up to their capacity in rawRowsShard.addRows
This should reduce memory usage a bit on data ingestion path
This commit is contained in:
parent
0f84503880
commit
95b735a883
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ func (rrs *rawRowsShard) addRows(pt *partition, rows []rawRow) {
|
|||
if cap(rrs.rows) == 0 {
|
||||
rrs.rows = getRawRowsMaxSize().rows
|
||||
}
|
||||
maxRowsCount := getMaxRawRowsPerPartition()
|
||||
maxRowsCount := cap(rrs.rows)
|
||||
for {
|
||||
capacity := maxRowsCount - len(rrs.rows)
|
||||
if capacity >= len(rows) {
|
||||
|
|
Loading…
Reference in a new issue