flush move log when cold collection is done

This commit is contained in:
vyzo 2021-06-22 09:21:19 +03:00
parent fc247e4223
commit fce7b8dc9b
2 changed files with 10 additions and 0 deletions

View File

@ -43,6 +43,14 @@ func (d *debugLog) LogMove(curTs *types.TipSet, cid cid.Cid, writeEpoch abi.Chai
// TODO
}
func (d *debugLog) FlushMove() {
if d == nil {
return
}
// TODO
}
func (d *debugLog) Close() error {
if d == nil {
return nil

View File

@ -806,6 +806,8 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
return nil
})
s.debug.FlushMove()
if err != nil {
return xerrors.Errorf("error collecting cold objects: %w", err)
}