forked from lix-project/lix
Merge branch 'avoid-quadratic-gc' of https://github.com/trofi/nix
This commit is contained in:
commit
d8f69b9a4c
1 changed files with 2 additions and 1 deletions
|
@ -678,7 +678,8 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
|||
alive.insert(start);
|
||||
try {
|
||||
StorePathSet closure;
|
||||
computeFSClosure(*path, closure);
|
||||
computeFSClosure(*path, closure,
|
||||
/* flipDirection */ false, gcKeepOutputs, gcKeepDerivations);
|
||||
for (auto & p : closure)
|
||||
alive.insert(p);
|
||||
} catch (InvalidPath &) { }
|
||||
|
|
Loading…
Reference in a new issue