Finish copyClosure
[?]
Jun 9, 2015, 2:03 PM
6TY4LNHHAUSZNFDN34CHUWMZSQN5I3LNOOSV457M44FDGZB76X4ACDependencies
- [2]
5AIYUMTBBasic remote building
Change contents
- edit in src/hydra-queue-runner/build-remote.cc at line 64
Paths sorted = topoSortPaths(*store, closure); - replacement in src/hydra-queue-runner/build-remote.cc at line 72
writeStrings(sorted, to);writeStrings(closure, to); - replacement in src/hydra-queue-runner/build-remote.cc at line 79
PathSet missing;std::set_difference(closure.begin(), closure.end(), present.begin(), present.end(),std::inserter(missing, missing.end()));if (present.size() == closure.size()) return;Paths sorted = topoSortPaths(*store, closure);Paths missing;for (auto i = sorted.rbegin(); i != sorted.rend(); ++i)if (present.find(*i) == present.end()) missing.push_back(*i); - replacement in src/hydra-queue-runner/build-remote.cc at line 88
if (missing.empty()) return;writeInt(cmdImportPaths, to);exportPaths(*store, missing, false, to);to.flush(); - replacement in src/hydra-queue-runner/build-remote.cc at line 93
throw Error("NOT IMPL 1");if (readInt(from) != 1)throw Error("remote machine failed to import closure");