← Back to team overview

launchpad-dev team mailing list archive

Re: Archive deletion strategy

 

On Tue, Aug 3, 2010 at 3:40 AM, James Westby <james.westby@xxxxxxxxxxxxx> wrote:

>  [ Can someone point me to the code that garbage collects PPA
>    files from the librarian ]

The Librarian Garbage Collector is cronscripts/librarian-gc.py. Pretty
much all you need to know is that if you set an expiry time on a
LibraryFileAlias or break all the references to a LibraryFileAlias
then it will do the right thing (remove unreferenced LibraryFileAlias
records, remove unreferenced LibraryFileContent records, removed
unreferenced files from disk, remove expired files from disk).

Eventually anyway - we put in lots of slack to help deal with disaster.


-- 
Stuart Bishop <stuart@xxxxxxxxxxxxxxxx>
http://www.stuartbishop.net/



References