diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-10-14 13:28:22 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-10-14 13:28:22 +0200 |
commit | 0be8cc1466f317e33977590510bac4b18471f0ce (patch) | |
tree | 1074258071e4e563fd00cf57e1f7ef3bf7a7bbca /src/libstore/gc.cc | |
parent | eab934cb2a23595a7ac7c8a72373cd8096b606a9 (diff) |
pathInfoCache: Use the entire base name as the cache key
This fixes a bug in the garbage collector where if a path
/nix/store/abcd-foo is valid, but we do a
isValidPath("/nix/store/abcd-foo.lock") first, then a negative entry
for /nix/store/abcd is added to pathInfoCache, so /nix/store/abcd-foo
is subsequently considered invalid and deleted.
Diffstat (limited to 'src/libstore/gc.cc')
0 files changed, 0 insertions, 0 deletions