1
0
Fork 0
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:
Ben Radford 2023-07-26 13:29:31 +01:00 committed by Ben Radford
parent 11c493f8fa
commit 33ebae75ca
5 changed files with 8 additions and 7 deletions

View file

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