mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-13 13:11:37 +01:00
lib/mergeset: simplify fulsuhInmemoryParts() a bit
This commit is contained in:
parent
df67b78f75
commit
733032e514
@ -661,12 +661,11 @@ func (tb *Table) flushInmemoryParts(isFinal bool) {
|
||||
|
||||
func (riss *rawItemsShards) flush(tb *Table, dst []*inmemoryBlock, isFinal bool) []*inmemoryBlock {
|
||||
tb.rawItemsPendingFlushesWG.Add(1)
|
||||
defer tb.rawItemsPendingFlushesWG.Done()
|
||||
|
||||
for i := range riss.shards {
|
||||
dst = riss.shards[i].appendBlocksToFlush(dst, tb, isFinal)
|
||||
}
|
||||
tb.flushBlocksToParts(dst, isFinal)
|
||||
tb.rawItemsPendingFlushesWG.Done()
|
||||
return dst
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user