Merge pull request #1098 from denverdino/master
Redundant digest verification in validateBlob when pushing a new layer
This commit is contained in:
commit
8cc790cccf
@ -176,6 +176,7 @@ func (repo *repository) Manifests(ctx context.Context, options ...distribution.M
|
|||||||
// TODO(stevvooe): linkPath limits this blob store to only
|
// TODO(stevvooe): linkPath limits this blob store to only
|
||||||
// manifests. This instance cannot be used for blob checks.
|
// manifests. This instance cannot be used for blob checks.
|
||||||
linkPathFns: manifestLinkPathFns,
|
linkPathFns: manifestLinkPathFns,
|
||||||
|
resumableDigestEnabled: repo.resumableDigestEnabled,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tagStore: &tagStore{
|
tagStore: &tagStore{
|
||||||
@ -221,6 +222,7 @@ func (repo *repository) Blobs(ctx context.Context) distribution.BlobStore {
|
|||||||
// This instance cannot be used for manifest checks.
|
// This instance cannot be used for manifest checks.
|
||||||
linkPathFns: []linkPathFunc{blobLinkPath},
|
linkPathFns: []linkPathFunc{blobLinkPath},
|
||||||
deleteEnabled: repo.registry.deleteEnabled,
|
deleteEnabled: repo.registry.deleteEnabled,
|
||||||
|
resumableDigestEnabled: repo.resumableDigestEnabled,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user