Skip to content

Commit 61f0a55

Browse files
fix(storage): handle dedupe disabled in GetAllDedupeReposCandidates()
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
1 parent aaee022 commit 61f0a55

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/storage/imagestore/imagestore.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,9 +1121,14 @@ func (is *ImageStore) GetAllDedupeReposCandidates(digest godigest.Digest) ([]str
11211121
return nil, err
11221122
}
11231123

1124+
if is.cache == nil {
1125+
return nil, nil
1126+
}
1127+
11241128
is.RLock(&lockLatency)
11251129
defer is.RUnlock(&lockLatency)
11261130

1131+
11271132
blobsPaths, err := is.cache.GetAllBlobs(digest)
11281133
if err != nil {
11291134
return nil, err

0 commit comments

Comments
 (0)