Merge pull request #1419 from dmcgowan/walk-skip-not-found
Skip items removed during walk
This commit is contained in:
commit
709c37b1d1
@ -481,6 +481,9 @@ func (s *snapshotter) Walk(ctx context.Context, fn func(context.Context, snapsho
|
|||||||
for _, pair := range pairs {
|
for _, pair := range pairs {
|
||||||
info, err := s.Snapshotter.Stat(ctx, pair.bkey)
|
info, err := s.Snapshotter.Stat(ctx, pair.bkey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if errdefs.IsNotFound(err) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user