1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-18 16:29:36 +01:00

Fix deletion test

Lower layer references are ignored for deleting just in the upper layer.
This commit is contained in:
John Ericson 2023-07-25 17:09:23 -04:00
parent 19c43c5d78
commit 07b34edc44
4 changed files with 30 additions and 1 deletions

View file

@ -115,7 +115,16 @@ private:
void optimiseStore() override;
/**
* For lower-store paths, we used the lower store location. This avoids the
* wasteful "copying up" that would otherwise happen.
*/
Path toRealPathForHardLink(const StorePath & storePath) override;
/**
* Deletion only effects the upper layer, so we ignore lower-layer referrers.
*/
void queryGCReferrers(const StorePath & path, StorePathSet & referrers) override;
};
}