From e2224844019d58fc947ce00e18e9fa9974d2c8b5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 May 2016 13:33:05 +0200 Subject: Re-implement the WantMassQuery property of binary caches --- src/libstore/nar-info-disk-cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstore/nar-info-disk-cache.cc') diff --git a/src/libstore/nar-info-disk-cache.cc b/src/libstore/nar-info-disk-cache.cc index d8b0815bf..ae368e152 100644 --- a/src/libstore/nar-info-disk-cache.cc +++ b/src/libstore/nar-info-disk-cache.cc @@ -113,13 +113,13 @@ public: return i->second; } - void createCache(const std::string & uri) override + void createCache(const std::string & uri, bool wantMassQuery, int priority) override { auto state(_state.lock()); // FIXME: race - state->insertCache.use()(uri)(time(0))(settings.nixStore)(1)(0).exec(); + state->insertCache.use()(uri)(time(0))(settings.nixStore)(wantMassQuery)(priority).exec(); assert(sqlite3_changes(state->db) == 1); state->caches[uri] = sqlite3_last_insert_rowid(state->db); } -- cgit v1.2.3