From 99bd0d80468747efbb62f38d4f9cb04c95c54927 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 31 Jan 2023 22:54:20 -0800 Subject: [PATCH] =?UTF-8?q?cache:=20don=E2=80=99t=20link=20blobonly=20base?= =?UTF-8?q?d=20on=20chainid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tonis Tiigi --- cache/manager.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cache/manager.go b/cache/manager.go index 983f7cd5295f..d579a6007ba0 100644 --- a/cache/manager.go +++ b/cache/manager.go @@ -222,10 +222,8 @@ func (cm *cacheManager) GetByBlob(ctx context.Context, desc ocispecs.Descriptor, id := identity.NewID() snapshotID := chainID.String() - blobOnly := true if link != nil { snapshotID = link.getSnapshotID() - blobOnly = link.getBlobOnly() go link.Release(context.TODO()) } @@ -289,7 +287,7 @@ func (cm *cacheManager) GetByBlob(ctx context.Context, desc ocispecs.Descriptor, rec.queueChainID(chainID) rec.queueBlobChainID(blobChainID) rec.queueSnapshotID(snapshotID) - rec.queueBlobOnly(blobOnly) + rec.queueBlobOnly(true) rec.queueMediaType(desc.MediaType) rec.queueBlobSize(desc.Size) rec.appendURLs(desc.URLs)