X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d199bf8a0732563a65f19538c6fa66b00f820f66..72d24b26cac507988ba6583064451b81d1854d78:/services/keepstore/keepstore.go diff --git a/services/keepstore/keepstore.go b/services/keepstore/keepstore.go index e5bd3bffb5..c899d5166a 100644 --- a/services/keepstore/keepstore.go +++ b/services/keepstore/keepstore.go @@ -4,7 +4,6 @@ import ( "bytes" "flag" "fmt" - "git.curoverse.com/arvados.git/services/keepstore/pull_list" "io/ioutil" "log" "net" @@ -92,12 +91,16 @@ func (e *KeepError) Error() string { // Initialized by the --volumes flag (or by FindKeepVolumes). var KeepVM VolumeManager -// The pull list manager is a singleton pull list (a list of blocks -// that the current keepstore process should be pulling from remote -// keepstore servers in order to increase data replication) with -// atomic update methods that are safe to use from multiple -// goroutines. -var pullmgr *pull_list.Manager +// The pull list manager and trash queue are threadsafe queues which +// support atomic update operations. The PullHandler and TrashHandler +// store results from Data Manager /pull and /trash requests here. +// +// See the Keep and Data Manager design documents for more details: +// https://arvados.org/projects/arvados/wiki/Keep_Design_Doc +// https://arvados.org/projects/arvados/wiki/Data_Manager_Design_Doc +// +var pullq *WorkQueue +var trashq *WorkQueue // TODO(twp): continue moving as much code as possible out of main // so it can be effectively tested. Esp. handling and postprocessing