0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

Merge pull request #127 from shimish2/dedupe-fix

Dedupe fix
This commit is contained in:
Ramkumar Chinchani 2020-08-17 16:33:25 -07:00 committed by GitHub
commit a06ad7e701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -890,7 +890,7 @@ retry:
if err != nil {
is.log.Error().Err(err).Str("blobPath", dstRecord).Msg("dedupe: unable to stat")
// the actual blob on disk may have been removed by GC, so sync the cache
if err := is.cache.DeleteBlob(dstDigest.String(), dst); err != nil {
if err := is.cache.DeleteBlob(dstDigest.String(), dstRecord); err != nil {
// nolint:lll
is.log.Error().Err(err).Str("dstDigest", dstDigest.String()).Str("dst", dst).Msg("dedupe: unable to delete blob record")