fix bug that turned candidate filtering to dead code
This commit is contained in:
parent
00fcf6dd72
commit
68a83500bc
@ -1077,17 +1077,15 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
|
|||||||
log.Infow("updating mark set done", "took", time.Since(startMark), "marked", count)
|
log.Infow("updating mark set done", "took", time.Since(startMark), "marked", count)
|
||||||
|
|
||||||
// filter the candidate set for objects newly marked as hot
|
// filter the candidate set for objects newly marked as hot
|
||||||
if liveCnt > 0 {
|
for c := range candidates {
|
||||||
for c := range candidates {
|
mark, err := markSet.Has(c)
|
||||||
mark, err := markSet.Has(c)
|
if err != nil {
|
||||||
if err != nil {
|
return xerrors.Errorf("error checking mark set for %s: %w", c, err)
|
||||||
return xerrors.Errorf("error checking mark set for %s: %w", c, err)
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if mark {
|
if mark {
|
||||||
delete(candidates, c)
|
delete(candidates, c)
|
||||||
liveCnt++
|
liveCnt++
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user