From 45b237453ae806b056220f1d2c2685f48e1fbe5b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Mar 2016 11:52:13 +0100 Subject: [PATCH] hydra-queue-runner: Recycle finishedDrvs This should prevent the queue monitor thread from looking up the same derivations over and over again. --- src/hydra-queue-runner/queue-monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/queue-monitor.cc b/src/hydra-queue-runner/queue-monitor.cc index c309ddc0..605102af 100644 --- a/src/hydra-queue-runner/queue-monitor.cc +++ b/src/hydra-queue-runner/queue-monitor.cc @@ -114,6 +114,7 @@ bool State::getQueuedBuilds(Connection & conn, ref localStore, std::set newRunnable; unsigned int nrAdded; std::function createBuild; + std::set finishedDrvs; createBuild = [&](Build::ptr build) { printMsg(lvlTalkative, format("loading build %1% (%2%)") % build->id % build->fullJobName()); @@ -139,7 +140,6 @@ bool State::getQueuedBuilds(Connection & conn, ref localStore, } std::set newSteps; - std::set finishedDrvs; // FIXME: re-use? Step::ptr step = createStep(destStore, conn, build, build->drvPath, build, 0, finishedDrvs, newSteps, newRunnable);