distribution/registry/storage
Terin Stock b23dd1ef37 swift: correct segment path generation
When uploading segments to Swift, the registry generates a random file,
by taking the hash of the container path and 32-bytes of random data.
The registry attempts to shard across multiple directory paths, by
taking the first three hex characters as leader.

The implementation in registry, unfortunately, takes the hash of
nothing, and appends it to the path and random data. This results in all
segments being created in one directory.

Fixes: #2407
Fixes: #2311
Signed-off-by: Terin Stock <terinjokes@gmail.com>
2019-06-22 23:44:43 -07:00
..
cache Fix some typos 2018-09-24 09:05:44 +08:00
driver swift: correct segment path generation 2019-06-22 23:44:43 -07:00
blob_test.go Enable static checks 2018-08-06 14:49:11 -07:00
blobcachemetrics.go registry: remove dependency on logrus for client 2017-08-15 10:28:38 -07:00
blobserver.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
blobstore.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
blobwriter.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
blobwriter_nonresumable.go If resumable digest support is disabled, detct this when closing the blobwriter 2016-06-13 17:35:06 -07:00
blobwriter_resumable.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
catalog.go lint fix 2018-08-06 09:46:42 -07:00
catalog_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
error.go Remove old walk function 2018-01-18 13:06:07 -08:00
filereader.go Enable static checks 2018-08-06 14:49:11 -07:00
filereader_test.go Enable static checks 2018-08-06 14:49:11 -07:00
garbagecollect.go Remove err nil check 2019-02-04 16:42:44 -08:00
garbagecollect_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
io.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
linkedblobstore.go fix gofmt and goimports 2018-09-11 16:14:10 -07:00
linkedblobstore_test.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
manifestlisthandler.go Fix registry stripping newlines from manifests 2018-09-05 13:40:42 -07:00
manifeststore.go Handle OCI manifests and image indexes without a media type 2018-06-19 11:24:25 -04:00
manifeststore_test.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
ocimanifesthandler.go Fix registry stripping newlines from manifests 2018-09-05 13:40:42 -07:00
ocimanifesthandler_test.go folow commit 9c88801a12 2018-06-18 13:55:24 -05:00
paths.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
paths_test.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
purgeuploads.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
purgeuploads_test.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
registry.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
schema2manifesthandler.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
schema2manifesthandler_test.go Update schema2 builder to take media type 2016-12-14 16:17:20 -08:00
signedmanifesthandler.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
tagstore.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
tagstore_test.go ignore path not found error when look up tags 2018-02-08 17:32:25 +08:00
v1unsupportedhandler.go disable schema1 by default, add a config flag to enable it 2017-12-19 10:23:25 -08:00
vacuum.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00