diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-30T11·33+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-30T13·18+0200 |
commit | e2224844019d58fc947ce00e18e9fa9974d2c8b5 (patch) | |
tree | 20204fa548e7a926e838486c63250572f4d6c2e8 /src/libstore/nar-info-disk-cache.cc | |
parent | b66ab6cdbce5f4ac2db8976872547680242166e8 (diff) |
Re-implement the WantMassQuery property of binary caches
Diffstat (limited to 'src/libstore/nar-info-disk-cache.cc')
-rw-r--r-- | src/libstore/nar-info-disk-cache.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/nar-info-disk-cache.cc b/src/libstore/nar-info-disk-cache.cc index d8b0815bf757..ae368e152866 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); } |