0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg
peusebiu 5479e2c785
s3: fix dedupe failing to manage blobs correctly (#772)
in order to know which blob is 'real' (has content)
we need to know which was the first blob inserted in cache,
because that is always the real one.

because we can not modify the keys order in boltdb we'll do this
by marking the first blob inserted with a value

when GetBlob() return the blob which is marked
when PutBlob() if is the first one, mark it
when DeleteBlob() in case deleted is marked then mark the next blob

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2022-09-08 01:12:14 +03:00
..
api Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00
cli Read log path and verify content separately to avoid failed tests 2022-09-05 12:41:33 -07:00
common sync: periodically retry if on-demand fails inline, closes #281 2022-02-07 09:04:13 -08:00
compliance Remove from Response header Range the 'bytes' string 2022-08-03 19:46:18 +03:00
exporter Manage builds with different combinations of extensions 2022-06-30 09:53:52 -07:00
extensions Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00
log Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00
requestcontext graphql: Apply authorization on /_search endpoint 2022-08-26 21:31:26 +03:00
storage s3: fix dedupe failing to manage blobs correctly (#772) 2022-09-08 01:12:14 +03:00
test Replaced deprecated io/ioutil functions (#768) 2022-09-02 15:56:02 +03:00