Skip to content
Snippets Groups Projects
Commit ddc1b777 authored by Jérémy Bobbio (Lunar)'s avatar Jérémy Bobbio (Lunar) Committed by Nicolas Dandrimont
Browse files

Implement delete() in WineryObjStorage

We now allow to delete objects from Winery. The object is first marked
as deleted in the shared base. This makes it inaccessible from further
`get()` calls. If the object still in a RWShard, the relevant line in
the `objects` table is deleted as well.

To take care of removing the data in ROShards, a dedicated host able to
map images in read-write mode can then call:

    swh objstorage winery clean-deleted-objects

This will zero out any deleted object present in the images and remove
their key from the indices. Object keys will then be removed from the
shared database.

Thanks to olasd for proposing several improvements over the initial
submission.

Addresses swh-alter#4
parent 9d4d3b93
No related branches found
No related tags found
1 merge request!166Implement delete() in WineryObjStorage
Pipeline #6868 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment