1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02: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

@ -741,7 +741,7 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
auto i = referrersCache.find(*path);
if (i == referrersCache.end()) {
StorePathSet referrers;
queryReferrers(*path, referrers);
queryGCReferrers(*path, referrers);
referrersCache.emplace(*path, std::move(referrers));
i = referrersCache.find(*path);
}