mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Reuse deletion logic for optimiseStore and rename method.
This commit is contained in:
parent
11c493f8fa
commit
33ebae75ca
5 changed files with 8 additions and 7 deletions
|
@ -653,7 +653,7 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
|||
results.paths.insert(path);
|
||||
|
||||
uint64_t bytesFreed;
|
||||
deleteGCPath(realPath, bytesFreed);
|
||||
deleteStorePath(realPath, bytesFreed);
|
||||
|
||||
results.bytesFreed += bytesFreed;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue