Skip to content

Commit 99bd0d8

Browse files
committed
cache: don’t link blobonly based on chainid
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent eefe206 commit 99bd0d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cache/manager.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,8 @@ func (cm *cacheManager) GetByBlob(ctx context.Context, desc ocispecs.Descriptor,
222222

223223
id := identity.NewID()
224224
snapshotID := chainID.String()
225-
blobOnly := true
226225
if link != nil {
227226
snapshotID = link.getSnapshotID()
228-
blobOnly = link.getBlobOnly()
229227
go link.Release(context.TODO())
230228
}
231229

@@ -289,7 +287,7 @@ func (cm *cacheManager) GetByBlob(ctx context.Context, desc ocispecs.Descriptor,
289287
rec.queueChainID(chainID)
290288
rec.queueBlobChainID(blobChainID)
291289
rec.queueSnapshotID(snapshotID)
292-
rec.queueBlobOnly(blobOnly)
290+
rec.queueBlobOnly(true)
293291
rec.queueMediaType(desc.MediaType)
294292
rec.queueBlobSize(desc.Size)
295293
rec.appendURLs(desc.URLs)

0 commit comments

Comments
 (0)