hydra-queue-runner: Write GC roots for outputs paths

We lost this behaviour somewhere. So build outputs could be GC'ed when
running the collector with --option gc-keep-outputs false.
This commit is contained in:
Eelco Dolstra
2017-10-12 18:55:38 +02:00
parent eb7631fb9d
commit 45b138373b
4 changed files with 12 additions and 0 deletions

View File

@ -87,6 +87,7 @@ State::State()
, maxOutputSize(config->getIntOption("max_output_size", 2ULL << 30))
, maxLogSize(config->getIntOption("max_log_size", 64ULL << 20))
, uploadLogsToBinaryCache(config->getBoolOption("upload_logs_to_binary_cache", false))
, rootsDir(config->getStrOption("gc_roots_dir", fmt("%s/gcroots/per-user/%s/hydra-roots", settings.nixStateDir, getEnv("USER"))))
{
debug("using %d bytes for the NAR buffer", memoryTokens.capacity());