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

Lock layers only for reading #1386

Merged
merged 2 commits into from
Oct 14, 2022
Merged

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Oct 13, 2022

Only lock the primary layer store for reading in CreateImage and Layers; I can’t see any reason for the exclusivity.

Cc: @nalind in case I’m missing something, primarily in CreateImage.

Copy link
Member

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nalind
Copy link
Member

nalind commented Oct 14, 2022

LGTM

... and use readAllLayerStores.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
There seems to be no reason to lock for writing.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@rhatdan rhatdan merged commit 9a72db8 into containers:main Oct 14, 2022
@mtrmac mtrmac deleted the read-layer-lock branch October 17, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants