Merge pull request #1419 from dmcgowan/walk-skip-not-found

Skip items removed during walk
This commit is contained in:
Michael Crosby 2017-08-23 17:59:31 -04:00 committed by GitHub
commit 709c37b1d1

View File

@ -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
} }