Skip to content

Commit

Permalink
Merge pull request #132 from nalind/layersbydigest
Browse files Browse the repository at this point in the history
Fix LayersBy*Digest with multiple layer stores
  • Loading branch information
rhatdan authored Oct 30, 2017
2 parents e1744c3 + 0b9d60e commit 9e0c323
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1888,10 +1888,16 @@ func (s *store) layersByMappedDigest(m func(ROLayerStore, digest.Digest) ([]Laye
}
storeLayers, err := m(store, d)
if err != nil {
return nil, err
if errors.Cause(err) != ErrLayerUnknown {
return nil, err
}
continue
}
layers = append(layers, storeLayers...)
}
if len(layers) == 0 {
return nil, ErrLayerUnknown
}
return layers, nil
}

Expand Down

0 comments on commit 9e0c323

Please sign in to comment.