fix error check for unreachable cids

This commit is contained in:
vyzo 2021-06-28 13:35:06 +03:00
parent 4a71c68e06
commit 9fda61abec

View File

@ -1093,7 +1093,7 @@ func (s *SplitStore) moveColdBlocks(cold []cid.Cid) error {
for _, cid := range cold { for _, cid := range cold {
blk, err := s.hot.Get(cid) blk, err := s.hot.Get(cid)
if err != nil { if err != nil {
if err == dstore.ErrNotFound { if err == bstore.ErrNotFound {
// this can happen if the node is killed after we have deleted the block from the hotstore // this can happen if the node is killed after we have deleted the block from the hotstore
// but before we have deleted it from the tracker; just delete the tracker. // but before we have deleted it from the tracker; just delete the tracker.
err = s.tracker.Delete(cid) err = s.tracker.Delete(cid)