mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/mergeset: simplify fulsuhInmemoryParts() a bit
This commit is contained in:
parent
8eeaf9b1f6
commit
4ba19f6b32
1 changed files with 1 additions and 2 deletions
|
@ -661,12 +661,11 @@ func (tb *Table) flushInmemoryParts(isFinal bool) {
|
||||||
|
|
||||||
func (riss *rawItemsShards) flush(tb *Table, dst []*inmemoryBlock, isFinal bool) []*inmemoryBlock {
|
func (riss *rawItemsShards) flush(tb *Table, dst []*inmemoryBlock, isFinal bool) []*inmemoryBlock {
|
||||||
tb.rawItemsPendingFlushesWG.Add(1)
|
tb.rawItemsPendingFlushesWG.Add(1)
|
||||||
defer tb.rawItemsPendingFlushesWG.Done()
|
|
||||||
|
|
||||||
for i := range riss.shards {
|
for i := range riss.shards {
|
||||||
dst = riss.shards[i].appendBlocksToFlush(dst, tb, isFinal)
|
dst = riss.shards[i].appendBlocksToFlush(dst, tb, isFinal)
|
||||||
}
|
}
|
||||||
tb.flushBlocksToParts(dst, isFinal)
|
tb.flushBlocksToParts(dst, isFinal)
|
||||||
|
tb.rawItemsPendingFlushesWG.Done()
|
||||||
return dst
|
return dst
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue