1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 17:29:36 +01:00

RemoteStore::addToStoreFromDump(): Invalidate cache entry for added path

This commit is contained in:
Eelco Dolstra 2025-08-10 21:40:03 +02:00
parent c82b67fa05
commit f51779ee25
3 changed files with 10 additions and 1 deletions

View file

@ -319,6 +319,11 @@ bool Store::PathInfoCacheValue::isKnownNow()
return std::chrono::steady_clock::now() < time_point + ttl;
}
void Store::invalidatePathInfoCacheFor(const StorePath & path)
{
state.lock()->pathInfoCache.erase(path.to_string());
}
std::map<std::string, std::optional<StorePath>> Store::queryStaticPartialDerivationOutputMap(const StorePath & path)
{
std::map<std::string, std::optional<StorePath>> outputs;