mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 04:57:17 +00:00
reset the size of sortableBuffer when flushing to disk (#579)
This commit is contained in:
parent
c60aff8058
commit
4f339a1c81
@ -284,6 +284,7 @@ func (b *sortableBuffer) FlushToDisk(datadir string) (string, error) {
|
||||
}
|
||||
|
||||
b.entries = b.entries[:0] // keep the capacity
|
||||
b.size = 0
|
||||
return filename, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user