diff options
author | Robert Hensing <robert@roberthensing.nl> | 2020-03-11 20:04:47 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2020-03-12 10:30:28 +0100 |
commit | 3f55f8a8fb5e885297e288c078adc173316addf2 (patch) | |
tree | fa1117d39e69691f9e7679e0d80c11665343da71 /src/libstore/local-store.cc | |
parent | 9080d5d924884ffde31536272ab925f784c8d7de (diff) |
pathInfoCache: Respect disk cache TTLs #3398
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index e59624cd3..c5929a41c 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -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; |