From 144987e28a7cb87e6875194039d53b05dca461b7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 13 Oct 2023 16:51:56 +0200 Subject: [PATCH] Revert cache version --- src/libfetchers/cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libfetchers/cache.cc b/src/libfetchers/cache.cc index 3f3b84f6cd4..8a3e462d313 100644 --- a/src/libfetchers/cache.cc +++ b/src/libfetchers/cache.cc @@ -27,7 +27,7 @@ struct CacheImpl : Cache struct State { SQLite db; - SQLiteStmt add, lookup, upsertFact, queryFact; + SQLiteStmt add, lookup; }; Sync _state; @@ -36,7 +36,7 @@ struct CacheImpl : Cache { auto state(_state.lock()); - auto dbPath = getCacheDir() + "/nix/fetcher-cache-v2.sqlite"; + auto dbPath = getCacheDir() + "/nix/fetcher-cache-v1.sqlite"; createDirs(dirOf(dbPath)); state->db = SQLite(dbPath);