1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/distribution/xfer
Aaron Lehmann 5c99eebe81 Fix concurrent uploads that share layers
Concurrent uploads which share layers worked correctly as of #18353,
but unfortunately #18785 caused a regression. This PR removed the logic
that shares digests between different push sessions. This overlooked the
case where one session was waiting for another session to upload a
layer.

This commit adds back the ability to propagate this digest information,
using the distribution.Descriptor type because this is what is received
from stats and uploads, and also what is ultimately needed for building
the manifest.

Surprisingly, there was no test covering this case. This commit adds
one. It fails without the fix.

See recent comments on #9132.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-03-01 11:14:44 -08:00
..
download.go Move temporary download file to download descriptor scope 2016-02-09 14:12:28 -08:00
download_test.go Windows CI Unit Test: Distribution\xfer turn off failing tests 2016-02-28 20:08:34 -08:00
transfer.go Avoid outputting last progress item twice 2016-01-26 10:03:28 -08:00
transfer_test.go Avoid outputting last progress item twice 2016-01-26 10:03:28 -08:00
upload.go Fix concurrent uploads that share layers 2016-03-01 11:14:44 -08:00
upload_test.go Fix concurrent uploads that share layers 2016-03-01 11:14:44 -08:00