The Wayback Machine - https://web.archive.org/web/20251014195324/https://github.com/moby/buildkit/pull/2177
Skip to content

Conversation

tonistiigi
Copy link
Member

fix #2157
fix #2061

remove() needs to be called while holding the manager lock (even documented). Afaics the reason prune releases manager lock early is to avoid holding it for the potentially slow size calculation. This PR moves size calculation to a separate step to avoid that.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

remove() needs to be called while holding the manager lock

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi merged commit b9d5a8f into moby:master Jun 15, 2021
@bra-fsn
Copy link

bra-fsn commented Sep 15, 2021

@tonistiigi can this be related as well?
docker/for-linux#1294

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.

concurrent map writes to cm.records concurrent map writes to cm.records

3 participants