mirage / irmin

Irmin is a distributed database that follows the same design principles as Git
https://irmin.org
ISC License
1.84k stars 153 forks source link

irmin-pack: add gc cleanup for lower layer #2222

Closed metanivek closed 1 year ago

metanivek commented 1 year ago

This PR adds the cleanup code for the lower layer in the situation where GC fails, either in the worker or during finalization. I also did some light refactoring to co-locate the swap and cleanup functions in the Lower module.