From ad14545745f3a8097a8a020b53f4954d2ff71db6 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 --- registry/storage/registry.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/registry/storage/registry.go b/registry/storage/registry.go index 1050920af..5ef06d536 100644 --- a/registry/storage/registry.go +++ b/registry/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, } }