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.
This commit is contained in:
Eelco Dolstra 2017-04-06 17:20:23 +02:00
parent 8364f4ec70
commit 5810042a3b
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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