diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-15 15:25:15 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-15 15:39:48 +0200 |
commit | a7d8eaba540ce272bc4fc19afdeae177a3b086d9 (patch) | |
tree | 9ddb9fe60a9e5d35869e07c65f90cf55c7b8f5af /src/libstore/binary-cache-store.hh | |
parent | d1b0909894a302540f979d904dd378af1cad620c (diff) |
BinaryCacheStore: Do negative caching of .narinfo lookups
Diffstat (limited to 'src/libstore/binary-cache-store.hh')
-rw-r--r-- | src/libstore/binary-cache-store.hh | 3 |
1 files changed, 2 insertions, 1 deletions
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<Path, ref<NarInfo>> narInfoCache{32 * 1024}; + LRUCache<Path, std::shared_ptr<NarInfo>> narInfoCache{32 * 1024}; }; Sync<State> state; @@ -51,6 +51,7 @@ public: { std::atomic<uint64_t> narInfoRead{0}; std::atomic<uint64_t> narInfoReadAverted{0}; + std::atomic<uint64_t> narInfoMissing{0}; std::atomic<uint64_t> narInfoWrite{0}; std::atomic<uint64_t> narInfoCacheSize{0}; std::atomic<uint64_t> narRead{0}; |