summaryrefslogtreecommitdiff
path: root/zuul/scheduler.py
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2015-12-08 09:55:05 +1100
committerJoshua Hesketh <josh@nitrotech.org>2015-12-21 15:52:48 +1100
commit811e2e933440a66324be7bc37db36bf94395ab30 (patch)
tree88fae3b782e5b5bb68f0a0378fdb6b730e4e3439 /zuul/scheduler.py
parent13cb40c3a076ba78edc5e35729c6bd7ef38ff9bb (diff)
downloadzuul-811e2e933440a66324be7bc37db36bf94395ab30.tar.gz
Fix regression in change tracking
Make sure we update the referenced change object on a new gerrit event rather than waiting to remake the queue item. This was a performance regression in the connection changes. Change-Id: I2a967f0347352a7674deb550e34fb94d1d903e89
Diffstat (limited to 'zuul/scheduler.py')
-rw-r--r--zuul/scheduler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/zuul/scheduler.py b/zuul/scheduler.py
index 151aae14e..05eb6febf 100644
--- a/zuul/scheduler.py
+++ b/zuul/scheduler.py
@@ -307,6 +307,9 @@ class Scheduler(threading.Thread):
driver_config, self, connection
)
+ if connection:
+ connection.registerUse(dtype, driver_instance)
+
return driver_instance
def _getSourceDriver(self, connection_name):