fix bug that turned candidate filtering to dead code
This commit is contained in:
parent
00fcf6dd72
commit
68a83500bc
@ -1077,7 +1077,6 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
|
||||
log.Infow("updating mark set done", "took", time.Since(startMark), "marked", count)
|
||||
|
||||
// filter the candidate set for objects newly marked as hot
|
||||
if liveCnt > 0 {
|
||||
for c := range candidates {
|
||||
mark, err := markSet.Has(c)
|
||||
if err != nil {
|
||||
@ -1089,7 +1088,6 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
|
||||
liveCnt++
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// create the cold object list
|
||||
cold := make([]cid.Cid, 0, len(candidates))
|
||||
|
Loading…
Reference in New Issue
Block a user