cache: store correctly the digestLen field

commit 10697a05a2 introduced the issue.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2022-01-13 10:40:33 +01:00
parent 70c783b293
commit 96c0403bb1
No known key found for this signature in database
GPG Key ID: 67E38F7A8BA21772
1 changed files with 4 additions and 3 deletions

View File

@ -328,9 +328,10 @@ func (c *layersCache) writeCache(id string) (*metadata, error) {
logrus.Debugf("Written lookaside cache for layer %q with length %v", id, counter.Count)
return &metadata{
tagLen: tagLen,
tags: tagsBuffer.Bytes(),
vdata: vdata.Bytes(),
digestLen: digestLen,
tagLen: tagLen,
tags: tagsBuffer.Bytes(),
vdata: vdata.Bytes(),
}, nil
}