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:
parent
19c43c5d78
commit
07b34edc44
4 changed files with 30 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue