Skip items removed during walk

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan 2017-08-23 14:43:56 -07:00
parent 05cdc4f435
commit 98960f0493
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB

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