From a7d8eaba540ce272bc4fc19afdeae177a3b086d9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 15 Apr 2016 15:25:15 +0200 Subject: BinaryCacheStore: Do negative caching of .narinfo lookups --- src/libstore/binary-cache-store.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstore/binary-cache-store.hh') diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh index 55bba6278..dcf06b3d1 100644 --- a/src/libstore/binary-cache-store.hh +++ b/src/libstore/binary-cache-store.hh @@ -24,7 +24,7 @@ private: struct State { - LRUCache> narInfoCache{32 * 1024}; + LRUCache> narInfoCache{32 * 1024}; }; Sync state; @@ -51,6 +51,7 @@ public: { std::atomic narInfoRead{0}; std::atomic narInfoReadAverted{0}; + std::atomic narInfoMissing{0}; std::atomic narInfoWrite{0}; std::atomic narInfoCacheSize{0}; std::atomic narRead{0}; -- cgit v1.2.3