178aa8b5e0
* Delete expired segments in expired segments service using metainfo loop * Add test to verify expired segments service deletes expired segments * Ignore expired segments in checker observer * Modify checker tests to verify that expired segments are ignored * Ignore expired segments in segment repairer and drop from repair queue * Add repair test to verify that a segment that expires after being added to the repair queue is ignored and dropped from the repair queue Change-Id: Ib2b0934db525fef58325583d2a7ca859b88ea60d
15 lines
502 B
Go
15 lines
502 B
Go
// Copyright (C) 2020 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
/*
|
|
Package expireddeletion contains the functions needed to run expired segment deletion
|
|
|
|
The expireddeletion.expiredDeleter implements the metainfo loop Observer interface
|
|
allowing us to subscribe to the loop to get information for every segment
|
|
in the metainfo database.
|
|
|
|
The expireddeletion chore will subscribe the deleter to the metainfo loop
|
|
and delete any expired segments from metainfo.
|
|
*/
|
|
package expireddeletion
|