mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
pathInfoCache: Respect disk cache TTLs #3398
This commit is contained in:
parent
9080d5d924
commit
3f55f8a8fb
4 changed files with 39 additions and 11 deletions
|
@ -622,7 +622,8 @@ uint64_t LocalStore::addValidPath(State & state,
|
|||
|
||||
{
|
||||
auto state_(Store::state.lock());
|
||||
state_->pathInfoCache.upsert(storePathToHash(printStorePath(info.path)), std::make_shared<ValidPathInfo>(info));
|
||||
state_->pathInfoCache.upsert(storePathToHash(printStorePath(info.path)),
|
||||
PathInfoCacheValue{ .value = std::make_shared<const ValidPathInfo>(info) });
|
||||
}
|
||||
|
||||
return id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue