From 451ebf24ce532f8d59f929efd486104fcebf1aa6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 20 Apr 2016 14:12:38 +0200 Subject: Cache path info lookups in SQLite This re-implements the binary cache database in C++, allowing it to be used by other Store backends, in particular the S3 backend. --- src/libstore/local-store.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/libstore/local-store.cc') diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index cef2eb3f0fc7..9bc164e19f93 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -580,7 +580,6 @@ uint64_t LocalStore::addValidPath(State & state, { auto state_(Store::state.lock()); state_->pathInfoCache.upsert(info.path, std::make_shared(info)); - stats.pathInfoCacheSize = state_->pathInfoCache.size(); } return id; @@ -1069,7 +1068,6 @@ void LocalStore::invalidatePath(State & state, const Path & path) { auto state_(Store::state.lock()); state_->pathInfoCache.erase(path); - stats.pathInfoCacheSize = state_->pathInfoCache.size(); } } -- cgit 1.4.1