remove unnecessary code
This commit is contained in:
parent
d79e4da7aa
commit
c5cf8e226b
@ -948,16 +948,6 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
|
|||||||
var count int64
|
var count int64
|
||||||
err = s.walk(curTs, boundaryEpoch, true, s.cfg.HotHeaders,
|
err = s.walk(curTs, boundaryEpoch, true, s.cfg.HotHeaders,
|
||||||
func(c cid.Cid) error {
|
func(c cid.Cid) error {
|
||||||
mark, err := markSet.Has(c)
|
|
||||||
if err != nil {
|
|
||||||
return xerrors.Errorf("error checking mark set for %s: %w", c, err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if mark {
|
|
||||||
// already marked, don't recurse its links
|
|
||||||
return errStopWalk
|
|
||||||
}
|
|
||||||
|
|
||||||
count++
|
count++
|
||||||
return markSet.Mark(c)
|
return markSet.Mark(c)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user