multipass-torrent icon indicating copy to clipboard operation
multipass-torrent copied to clipboard

Garbage collection for torrents

Open Ivshti opened this issue 10 years ago • 2 comments

If a torrent hasn't been seeded or recently updated, we can garbage collect it.

Maybe this should be default behaviour, maybe not.

@sammuel86 @jaruba thoughts?

Ivshti avatar Aug 31 '15 16:08 Ivshti

It might be wise to give the option of not saving anything in a db, and also a way to delete the entire thing.

jaruba avatar Sep 02 '15 15:09 jaruba

well, it can be very easily made to work in an in-memory db

I forgot to mention that to you but I realize now it's going to be great for your purposes.

To make it happen, we must patch mafintosh/multi-master-merge to work on top of another key-value store. Should be easy

Garbage collection is also something mmm must be patched for, since currently it doesn't delete stale log entries. I tried to patch it to do, but it exploded in some cases with KeyNotFound. In theory, this error should just be intercepted and ignored, but I haven't put time into figuring out how to do it

Ivshti avatar Sep 07 '15 09:09 Ivshti