Actions
Task #3682
closedStory #3762: [Keep] Process entries on the current "delete" list.
Implement TrashCollector
Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
-
Target version:
Start date:
07/29/2014
Due date:
% Done:
0%
Estimated time:
Description
The Keepstore TrashCollector is a module which recycles trashable blocks asynchronously. The interface is:
The TrashCollector.New() function creates and returns a TrashCollector object, and launches a Recycle goroutine which waits for trash requests.
Garbage collection is triggered by the Start(trashlist) method. trashlist is a slice of block hashes, and is sent over a channel to the Recycle goroutine.
Recycle loops over the list of blocks to be deleted and calls vol.Delete on each one.
Actions