this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

more effectively ignore file not found errors in delete path (#679)

Returning the errors while soft ignoring them only means we dont finish
the rest of the compaction cleanup work in these cases

authored by

Whyrusleeping and committed by
GitHub
c168ade4 936618cc

+2 -3
+2 -3
carstore/bs.go
··· 1085 1085 return err 1086 1086 } 1087 1087 1088 - var outErr error 1089 1088 for _, sh := range subs { 1090 1089 if err := cs.deleteShardFile(ctx, sh); err != nil { 1091 1090 if !os.IsNotExist(err) { 1092 1091 return err 1093 1092 } 1094 - outErr = err 1093 + log.Warnw("shard file we tried to delete did not exist", "shard", sh.ID, "path", sh.Path) 1095 1094 } 1096 1095 } 1097 1096 1098 - return outErr 1097 + return nil 1099 1098 } 1100 1099 1101 1100 chunkSize := 10000