mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Eliminate reserveSpace flag
This commit is contained in:
parent
5a64e66268
commit
28e7e29abd
10 changed files with 33 additions and 37 deletions
|
@ -608,6 +608,9 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
|||
|
||||
state.shouldDelete = options.action == GCOptions::gcDeleteDead || options.action == GCOptions::gcDeleteSpecific;
|
||||
|
||||
if (state.shouldDelete && pathExists(reservedPath))
|
||||
deletePath(reservedPath);
|
||||
|
||||
/* Acquire the global GC root. This prevents
|
||||
a) New roots from being added.
|
||||
b) Processes from creating new temporary root files. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue