1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-27 12:41:00 +01:00

NarInfoDiskCache: Rename cacheExists -> upToDateCacheExists

This is slightly more accurate considering that an outdated record
may exist in the persistent cache. Possibly-outdated records are
quite relevant as they may be foreign keys to more recent information
that we want to keep, but we will not return them here.

(cherry picked from commit 29f0b196f4)
This commit is contained in:
Robert Hensing 2023-01-17 19:54:47 +01:00 committed by github-actions[bot]
parent 9f788403cf
commit 7a67baf951
4 changed files with 4 additions and 4 deletions

View file

@ -200,7 +200,7 @@ public:
});
}
std::optional<CacheInfo> cacheExists(const std::string & uri) override
std::optional<CacheInfo> upToDateCacheExists(const std::string & uri) override
{
return retrySQLite<std::optional<CacheInfo>>([&]() -> std::optional<CacheInfo> {
auto state(_state.lock());