From c40b2e2341565e0e1afd7ae36d096f981a6fd4f6 Mon Sep 17 00:00:00 2001 From: Li Yi Date: Thu, 15 Oct 2015 22:21:14 +0800 Subject: [PATCH] Redundant digest verification in validateBlob Change-Id: I03764edadae529db2cc3acf7ecca329570f18659 Signed-off-by: Li Yi --- docs/storage/registry.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/storage/registry.go b/docs/storage/registry.go index 1050920a..5ef06d53 100644 --- a/docs/storage/registry.go +++ b/docs/storage/registry.go @@ -175,7 +175,8 @@ func (repo *repository) Manifests(ctx context.Context, options ...distribution.M // TODO(stevvooe): linkPath limits this blob store to only // manifests. This instance cannot be used for blob checks. - linkPathFns: manifestLinkPathFns, + linkPathFns: manifestLinkPathFns, + resumableDigestEnabled: repo.resumableDigestEnabled, }, }, tagStore: &tagStore{ @@ -219,8 +220,9 @@ func (repo *repository) Blobs(ctx context.Context) distribution.BlobStore { // TODO(stevvooe): linkPath limits this blob store to only layers. // This instance cannot be used for manifest checks. - linkPathFns: []linkPathFunc{blobLinkPath}, - deleteEnabled: repo.registry.deleteEnabled, + linkPathFns: []linkPathFunc{blobLinkPath}, + deleteEnabled: repo.registry.deleteEnabled, + resumableDigestEnabled: repo.resumableDigestEnabled, } }