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:
Giuseppe Scrivano 2024-09-30 10:12:40 +02:00
parent c90a35bdc0
commit e3664d50e0
No known key found for this signature in database
GPG Key ID: 67E38F7A8BA21772
1 changed files with 1 additions and 1 deletions

View File

@ -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.
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)
}
if l != nil {