Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate CompressedDigest/CompressedSize when reusing data from another layer #2583

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 25, 2024

  1. Propagate CompressedDigest/CompressedSize when reusing data from anot…

    …her layer
    
    We record (some) CompressedDigest/CompressedSize when pulling a layer from
    registry; but, previously, we would lose these values (and record uncompressed values)
    when creating a duplicate of a layer already present in storage. Eventually,
    the original layer might get deleted and then we would only find a match
    in BlobInfoCache, under more restrictive conditions.
    
    Instead, try to propagate the value to the duplicated layer. This might
    not work if the layer has multiple compressed representations, but
    that's hopefully not all _that_ frequent.
    
    Signed-off-by: Miloslav Trmač <[email protected]>
    mtrmac committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    c35514f View commit details
    Browse the repository at this point in the history