distribution/registry/storage/driver
Stefan Majewsky 4c9bed2507 don't swallow errors in Swift driver's GetContent()
In 326c3a9c49, which was only intended to
be a refactoring commit, the behavior of this block subtly changed so
that unknown types of errors would be swallowed instead of propagated.

I noticed this while investigating an error similar to #1539 aka
docker/docker#21290. It appears that during GetContent() for a
hashstate, the Swift proxy produces an error. Since this error was
silently swallowed, an empty []byte is used to restart the hash, then
producing the digest of the empty string instead of the layer's digest.

This PR will not fix the issue, but it should make the actual error more
visible by propagating it into `blobWriter#resumeDigest' and
'blobWriter#validateBlob', respectively.

Signed-off-by: Stefan Majewsky <stefan.majewsky@sap.com>
2016-03-30 16:11:29 +02:00
..
azure Update missing blob error checking with latest Azure API 2016-03-14 15:59:03 -07:00
base Adds new storagedriver.FileWriter interface 2016-03-08 16:37:44 -08:00
factory Add documentation for how to register new StorageDrivers 2016-03-29 14:42:19 -07:00
filesystem Adds new storagedriver.FileWriter interface 2016-03-08 16:37:44 -08:00
gcs Storagedriver: GCS: add chunksize parameter 2016-03-08 16:38:39 -08:00
inmemory Adds new storagedriver.FileWriter interface 2016-03-08 16:37:44 -08:00
middleware Adds new s3 driver using aws-sdk-go instead of goamz 2016-02-12 15:59:26 -08:00
oss Support FileWriter interface for OSS storage driver 2016-03-08 16:38:39 -08:00
s3-aws registry/storage/driver/s3-aws kms support 2016-03-11 17:19:01 -06:00
s3-goamz Adds new storagedriver.FileWriter interface 2016-03-08 16:37:44 -08:00
swift don't swallow errors in Swift driver's GetContent() 2016-03-30 16:11:29 +02:00
testsuites StorageDriver: Testsuite: call Close before getting Size 2016-03-08 16:38:38 -08:00
fileinfo.go Move storagedriver package to registry/storage/driver 2015-02-11 12:43:04 -08:00
storagedriver.go Remove the example 2016-03-29 14:42:28 -07:00