chunked: ignore ErrLayerUnknown when creating cache
ignore the error if the layer is being deleted while we are processing it without a lock on the store. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
c90a35bdc0
commit
e3664d50e0
|
|
@ -297,7 +297,7 @@ func (c *layersCache) load() error {
|
||||||
|
|
||||||
// the cache file is either not present or broken. Try to generate it from the TOC.
|
// the cache file is either not present or broken. Try to generate it from the TOC.
|
||||||
l, err = c.createCacheFileFromTOC(r.ID)
|
l, err = c.createCacheFileFromTOC(r.ID)
|
||||||
if err != nil {
|
if err != nil && !errors.Is(err, storage.ErrLayerUnknown) {
|
||||||
logrus.Warningf("Error creating cache file for layer %q: %v", r.ID, err)
|
logrus.Warningf("Error creating cache file for layer %q: %v", r.ID, err)
|
||||||
}
|
}
|
||||||
if l != nil {
|
if l != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue