mirror of
https://github.com/project-zot/zot.git
synced 2025-01-06 22:40:28 -05:00
3a30290e08
dstRecord :- blob path stored in cache. dst :- blob path that is trying to be uploaded. Currently, if the actual blob on disk may have been removed by GC/delete, during syncing the cache dst is being passed to DeleteBlob function and retry section is being continuously called because DeleteBlob function never deletes dst path (doesn't exist in db), dstRecord should be passed into DeleteBlob function because dstRecord is actual blob path stored in db. If dst and dstRecord path value is same then this issue will not be produced and DeleteBlob method will delete the blob info from cache but if both are different then DeleteBlob method will try to delete dst path which is not in cache. Note:- boltdb delete method return nil even when value doesn't exist (https://godoc.org/github.com/boltdb/bolt#Bucket.Delete) |
||
---|---|---|
.. | ||
BUILD.bazel | ||
cache.go | ||
cache_test.go | ||
storage.go | ||
storage_test.go |