Panic on bad piece per resource chunk names
This was masking a bug in a coming sqlite storage implementation. Maybe it could be relaxed to checking for no filepath.Dir in the future.
This commit is contained in:
parent
417d7d1d48
commit
00ac333ea2
@ -123,7 +123,7 @@ func (s piecePerResourcePiece) getChunks() (chunks chunks) {
|
||||
for _, n := range names {
|
||||
offset, err := strconv.ParseInt(n, 10, 64)
|
||||
if err != nil {
|
||||
continue
|
||||
panic(err)
|
||||
}
|
||||
i, err := s.rp.NewInstance(path.Join(s.incompleteDirPath(), n))
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user