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

layerStore.Put(): update digest-based indexes when creating from templates #1210

Merged
merged 2 commits into from Apr 19, 2022

Commits on Apr 18, 2022

  1. layerStore.PutAdditionalLayer(): fix a copy/paste error

    We mistakenly mixed up the uncompressed and compressed digests when
    populating the by-uncompressed-digest map.
    
    Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
    nalind committed Apr 18, 2022
    Copy the full SHA
    861436b View commit details
    Browse the repository at this point in the history
  2. layerStore.Put(): update digest-based indexes when creating from temp…

    …lates
    
    When we're creating a layer using another layer as a template, add the
    new layer's uncompressed and compressed digest to the maps we use to
    index layers using those digests.
    
    When we forgot to do that, searching for a layer by either would still
    turn up the original template, so this didn't really break anything.
    
    Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
    nalind committed Apr 18, 2022
    Copy the full SHA
    2de654b View commit details
    Browse the repository at this point in the history