diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-06T12·30+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-06T12·30+0200 |
commit | 256940fc48a6db950136fb0bc43590b701a3e857 (patch) | |
tree | 33ce2b1e13f0aba27d4046c5fa2364a758583520 /src/nix-daemon | |
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/nix-daemon')
-rw-r--r-- | src/nix-daemon/nix-daemon.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index ab5826b0d1a7..b6a46642c7c1 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -637,7 +637,10 @@ static void processConnection(bool trusted) #endif /* Open the store. */ - auto store = make_ref<LocalStore>(Store::Params()); // FIXME: get params from somewhere + Store::Params params; // FIXME: get params from somewhere + // Disable caching since the client already does that. + params["path-info-cache-size"] = "0"; + auto store = make_ref<LocalStore>(params); stopWork(); to.flush(); |