Skip to content

Commit

Permalink
FIXME
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <[email protected]>
  • Loading branch information
mtrmac committed May 30, 2024
1 parent 41b1e12 commit 800614d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions storage/storage_dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,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)
Expand Down

0 comments on commit 800614d

Please sign in to comment.