mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
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).
This commit is contained in:
parent
8decb07c31
commit
256940fc48
5 changed files with 17 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue