From 826b271d9aead1a0f8e1678e7c2814066fffb983 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 13 Jun 2008 18:25:24 +0000 Subject: * Garbage collector: don't do a complete topological sort of the Nix store under the reference relation, since that means that the garbage collector will need a long time to start deleting paths. Instead just delete the referrers of a path first. --- src/libstore/local-store.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 57d9d765e420..444a5f3402df 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -143,6 +143,10 @@ private: void upgradeStore12(); + void tryToDelete(GCAction action, const PathSet & livePaths, + const PathSet & tempRootsClosed, PathSet & done, PathSet & deleted, + const Path & path, unsigned long long & bytesFreed); + }; -- cgit 1.4.1