Fix root creation when the root already exists but is owned by another user
[?]
Oct 19, 2017, 10:28 AM
INVXGPNKOM33VJULCY7CKPSVAIHSV4EYM4TT3QVL4VBGTMPJ6HHACDependencies
- [2]
YXYXJDMBhydra-queue-runner: Write GC roots for outputs paths - [3]
BRAESISHWarn if PostgreSQL appears stalled - [4]
MHVIT4JYSplit hydra-queue-runner.cc more - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
EPWEMRI2Allow determinism checking for entire jobsets - [*]
HJOEIMLRRefactor
Change contents
- replacement in src/hydra-queue-runner/builder.cc at line 267
writeFile(rootsDir + "/" + baseNameOf(path), "");addRoot(path); - edit in src/hydra-queue-runner/builder.cc at line 476[3.14591]
void State::addRoot(const Path & storePath){auto root = rootsDir + "/" + baseNameOf(storePath);if (!pathExists(root)) writeFile(root, "");} - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 843
addRoot("/nix/store/rk9lahzm21qm0zjclv6mz0m4hy77wk14-vm-test-run-unnamed.drv"); - replacement in src/hydra-queue-runner/queue-monitor.cc at line 225
writeFile(rootsDir + "/" + baseNameOf(path), "");addRoot(path); - edit in src/hydra-queue-runner/state.hh at line 537[8.9109][8.9109]
void addRoot(const nix::Path & storePath);