diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-24 17:33:53 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-24 17:44:55 +0100 |
commit | 28e7e29abdcdaf60ba8a5fad3738fe4a8f3db9a8 (patch) | |
tree | 12755f285c04a9b83ec0d304e8776cbe0ca602a2 /src/libstore/gc.cc | |
parent | 5a64e66268471d2141e5b5c72b9658644c113414 (diff) |
Eliminate reserveSpace flag
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r-- | src/libstore/gc.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index d19af1cef..1bc8d162f 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -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. */ |