about summary refs log tree commit diff
path: root/src/libstore/local-store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-06-13T18·25+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-06-13T18·25+0000
commit826b271d9aead1a0f8e1678e7c2814066fffb983 (patch)
tree1fbbdebd0a748d9991190c7afb6675857c174834 /src/libstore/local-store.hh
parent30c9f909b24d64d8fabc2bb450e03744cc69c9a0 (diff)
* 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.

Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r--src/libstore/local-store.hh4
1 files changed, 4 insertions, 0 deletions
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);
+    
 };