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

[v1.38, backport] store: add independent AddNames and RemoveNames for images,layers,containers #1174

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

flouthoc
Copy link
Collaborator

Backport of #1153

Adds AddNames and RemoveNames so operations which are invoked in parallel
manner can use it without destroying names from storage.

For instance

We are deleting names which were already written in store.
This creates faulty behavior when builds are invoked in parallel manner, as
this removes names for other builds.

To fix this behavior we must append to already written names and
override if needed. But this should be optional and not break public API

Following patch will be used by parallel operations at podman or buildah end, directly or indirectly.

…tainers

Adds AddNames and RemoveNames so operations which are invoked in parallel
manner can use it without destroying names from storage.

For instance

We are deleting names which were already written in store.
This creates faulty behavior when builds are invoked in parallel manner, as
this removes names for other builds.

To fix this behavior we must append to already written names and
override if needed. But this should be optional and not break public API

Following patch will be used by parallel operations at podman or buildah end, directly or indirectly.

Signed-off-by: Aditya R <[email protected]>
Signed-off-by: Aditya R <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Mar 23, 2022

LGTM

@rhatdan rhatdan merged commit e9510f4 into containers:release-1.38 Mar 23, 2022
@flouthoc
Copy link
Collaborator Author

@containers/storage-maintainers @rhatdan @giuseppe @nalind Could we cut a 1.38.3 from release-1.38 branch so I could use to backport stuff to v4.0-rhel branch in podman.

@flouthoc
Copy link
Collaborator Author

@TomSweeneyRedHat
Copy link
Member

@TomSweeneyRedHat
Copy link
Member

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.

3 participants