1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-11 11:31:03 +01:00

More sensible to have deleteGCPath in LocalStore.

This commit is contained in:
Ben Radford 2023-06-06 12:06:32 +01:00 committed by Ben Radford
parent a48acfd684
commit 8a9baa0a30
5 changed files with 14 additions and 14 deletions

View file

@ -222,6 +222,13 @@ public:
void collectGarbage(const GCOptions & options, GCResults & results) override;
/**
* Called by `collectGarbage` to recursively delete a path.
* The default implementation simply calls `deletePath`, but it can be
* overridden by stores that wish to provide their own deletion behaviour.
*/
virtual void deleteGCPath(const Path & path, uint64_t & bytesFreed);
/**
* Optimise the disk space usage of the Nix store by hard-linking
* files with the same contents.