1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/distribution
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
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata Changes cross-repository blob mounting to a blob Create option 2016-01-14 14:26:03 -08:00
xfer Fix concurrent uploads that share layers 2016-03-01 11:14:44 -08:00
errors.go Smarter push/pull TLS fallback 2016-02-12 13:47:48 -08:00
pull.go Change APIEndpoint to contain the URL in a parsed format 2016-02-17 17:48:15 -08:00
pull_v1.go Push/pull errors improvement and cleanup 2016-02-11 16:28:56 -08:00
pull_v2.go Smarter push/pull TLS fallback 2016-02-12 13:47:48 -08:00
pull_v2_test.go Windows CI Unit Test: Distribution turn off failing tests 2016-02-28 20:02:51 -08:00
pull_v2_unix.go Add distribution package 2015-11-24 09:40:24 -08:00
pull_v2_windows.go Add distribution package 2015-11-24 09:40:24 -08:00
push.go Change APIEndpoint to contain the URL in a parsed format 2016-02-17 17:48:15 -08:00
push_v1.go Remove the use of dockerversion from the registry package 2016-01-15 12:43:54 -05:00
push_v2.go Fix concurrent uploads that share layers 2016-03-01 11:14:44 -08:00
registry.go Change APIEndpoint to contain the URL in a parsed format 2016-02-17 17:48:15 -08:00
registry_unit_test.go Change APIEndpoint to contain the URL in a parsed format 2016-02-17 17:48:15 -08:00