From a9266ff25d08cc6211f3405987ab61d836db5454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Tue, 30 Apr 2024 19:29:34 +0200 Subject: [PATCH] FIXME MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- storage/storage_dest.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/storage/storage_dest.go b/storage/storage_dest.go index ac6eb6f24b..f2dc666e96 100644 --- a/storage/storage_dest.go +++ b/storage/storage_dest.go @@ -795,6 +795,13 @@ func (s *storageImageDestination) createNewLayer(index int, layerDigest digest.D diffOutput, ok := s.lockProtected.diffOutputs[index] s.lock.Unlock() if ok { + s.lock.Lock() + trustedUncompressedDigest, ok := s.lockProtected.indexToDiffID[index] + s.lock.Unlock() + if ok { + diffOutput.UncompressedDigest = trustedUncompressedDigest + } + var untrustedUncompressedDigest digest.Digest if diffOutput.UncompressedDigest == "" { d, err := s.untrustedLayerDiffID(index)