From 5810042a3b4b877ddf52e4c1117a9fc2dc31a87b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 6 Apr 2017 17:20:23 +0200 Subject: [PATCH] Periodically clear Store's path info cache Otherwise the queue runner can consider paths as valid that have been garbage-collected since the first time it queried them. --- src/hydra-queue-runner/queue-monitor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hydra-queue-runner/queue-monitor.cc b/src/hydra-queue-runner/queue-monitor.cc index 4ff1a16a..4b3eebf1 100644 --- a/src/hydra-queue-runner/queue-monitor.cc +++ b/src/hydra-queue-runner/queue-monitor.cc @@ -36,6 +36,8 @@ void State::queueMonitorLoop() unsigned int lastBuildId = 0; while (true) { + localStore->clearPathInfoCache(); + bool done = getQueuedBuilds(*conn, destStore, lastBuildId); /* Sleep until we get notification from the database about an