lib/mergeset: simplify fulsuhInmemoryParts() a bit

This commit is contained in:
Aliaksandr Valialkin 2023-07-13 12:33:30 -07:00
parent 8eeaf9b1f6
commit 4ba19f6b32
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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
}