mirror of
https://github.com/restic/restic.git
synced 2024-12-25 01:06:39 +00:00
Merge pull request #1400 from armhold/deadlock2
log unexpected errs from b2 ListCurrentObject()
This commit is contained in:
commit
d01d07fc0a
1 changed files with 2 additions and 0 deletions
|
@ -319,6 +319,8 @@ func (be *b2Backend) List(ctx context.Context, t restic.FileType) <-chan string
|
||||||
objs, c, err := be.bucket.ListCurrentObjects(ctx, be.listMaxItems, cur)
|
objs, c, err := be.bucket.ListCurrentObjects(ctx, be.listMaxItems, cur)
|
||||||
be.sem.ReleaseToken()
|
be.sem.ReleaseToken()
|
||||||
if err != nil && err != io.EOF {
|
if err != nil && err != io.EOF {
|
||||||
|
// TODO: return err to caller once err handling in List() is improved
|
||||||
|
debug.Log("List: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
debug.Log("returned %v items", len(objs))
|
debug.Log("returned %v items", len(objs))
|
||||||
|
|
Loading…
Reference in a new issue