From 7ab68961e4d7c30485efde1fb9dcb6edbdea9b5c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 17 Sep 2008 10:02:55 +0000 Subject: * Garbage collector: added an option `--use-atime' to delete paths in order of ascending last access time. This is useful in conjunction with --max-freed or --max-links to prefer deleting non-recently used garbage, which is good (especially in the build farm) since garbage may become live again. The code could easily be modified to accept other criteria for ordering garbage by changing the comparison operator used by the priority queue in collectGarbage(). --- src/libstore/local-store.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 8266184f0edf..6ad5032f6ea7 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -168,8 +168,7 @@ private: void upgradeStore12(); void tryToDelete(const GCOptions & options, GCResults & results, - const PathSet & livePaths, const PathSet & tempRootsClosed, PathSet & done, - const Path & path); + PathSet & done, const Path & path); void startSubstituter(const Path & substituter, RunningSubstituter & runningSubstituter); -- cgit 1.4.1