diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-06 14:30:31 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-06 14:30:31 +0200 |
commit | 256940fc48a6db950136fb0bc43590b701a3e857 (patch) | |
tree | 33ce2b1e13f0aba27d4046c5fa2364a758583520 /src/libstore/store-api.cc | |
parent | 8decb07c31581febab664bedde12c8bf1367279e (diff) |
nix-daemon: Disable path info cache
This is useless because the client also caches path info, and can
cause problems for long-running clients like hydra-queue-runner
(i.e. it may return cached info about paths that have been
garbage-collected).
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 441166d04..59348c5d0 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -242,6 +242,7 @@ Path Store::computeStorePathForText(const string & name, const string & s, Store::Store(const Params & params) : storeDir(get(params, "store", settings.nixStore)) + , state({std::stoi(get(params, "path-info-cache-size", "65536"))}) { } |