flush implicit writes before starting compaction

This commit is contained in:
vyzo 2021-07-02 11:17:31 +03:00
parent a29947d47c
commit 7f473f56eb

View File

@ -879,6 +879,7 @@ func (s *SplitStore) compact(curTs *types.TipSet) {
log.Infow("current mark set size estimate", "size", s.markSetSize)
}
s.flushImplicitWrites(false)
start := time.Now()
err = s.doCompact(curTs)
took := time.Since(start).Milliseconds()