moby/builder/builder-next/adapters/snapshot
Tonis Tiigi 37545cc644
builder-next: fix missing lock in ensurelayer
When this was called concurrently from the moby image
exporter there could be a data race where a layer was
written to the refs map when it was already there.

In that case the reference count got mixed up and on
release only one of these layers was actually released.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-03-06 23:11:32 -08:00
..
layer.go builder-next: fix missing lock in ensurelayer 2024-03-06 23:11:32 -08:00
leasemanager.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
snapshot.go builder-next: fix missing lock in ensurelayer 2024-03-06 23:11:32 -08:00