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:
parent
a48acfd684
commit
8a9baa0a30
5 changed files with 14 additions and 14 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue