1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 17:59:36 +01:00

* 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.
This commit is contained in:
Eelco Dolstra 2008-06-13 18:25:24 +00:00
parent 30c9f909b2
commit 826b271d9a
2 changed files with 87 additions and 74 deletions

View file

@ -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);
};