mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
fix redis cache duplicate lookup
This commit is contained in:
committed by
GitHub
parent
758137b896
commit
b70c3ac7e4
Vendored
+2
-2
@@ -252,9 +252,9 @@ func (d *RedisDriver) HasBlob(digest godigest.Digest, path string) bool {
|
||||
if !goerrors.Is(err, redis.Nil) {
|
||||
d.log.Error().Err(err).Str("hget", d.join(constants.BlobsCache, constants.OriginalBucket)).
|
||||
Str("digest", digest.String()).Msg("unable to get record")
|
||||
}
|
||||
|
||||
return false
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
if currentPath == path {
|
||||
|
||||
Reference in New Issue
Block a user