moby/builder/builder-next/adapters
Tonis Tiigi d250e13945
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>
(cherry picked from commit 37545cc644)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-03-07 12:18:07 +01:00
..
containerimage add //go:build directives to prevent downgrading to go1.16 language 2023-12-15 15:24:15 +01:00
localinlinecache migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
snapshot builder-next: fix missing lock in ensurelayer 2024-03-07 12:18:07 +01:00