Skip to content
Snippets Groups Projects

Implement delete() in WineryObjStorage

Merged Jérémy Bobbio (Lunar) requested to merge lunar/swh-objstorage:implement-delete into master

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.

Depends on !169 (merged)

Addresses swh-alter#4 (closed)

Edited by Jérémy Bobbio (Lunar)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading