Project

General

Profile

Actions

Task #3682

closed

Idea #3762: [Keep] Process entries on the current "delete" list.

Implement TrashCollector

Added by Tim Pierce over 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Target version:

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 #1

Updated by Tom Clegg over 9 years ago

  • Parent task deleted (#3413)
Actions #2

Updated by Tom Clegg over 9 years ago

  • Parent task set to #3762
Actions #3

Updated by Radhika Chippada about 9 years ago

  • Status changed from New to Resolved
  • Assigned To set to Radhika Chippada
  • Remaining (hours) set to 0.0

Implemented as RunPullWorker go routine.

Actions

Also available in: Atom PDF