fix(storage): handle dedupe disabled in GetAllDedupeReposCandidates() (#2533)

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
peusebiu
2024-07-09 15:33:11 +03:00
committed by GitHub
parent aaee0220e4
commit 1c2736d970
3 changed files with 21 additions and 9 deletions
+4
View File
@@ -1121,6 +1121,10 @@ func (is *ImageStore) GetAllDedupeReposCandidates(digest godigest.Digest) ([]str
return nil, err
}
if is.cache == nil {
return nil, nil
}
is.RLock(&lockLatency)
defer is.RUnlock(&lockLatency)