From: Sarah Hoffmann Date: Wed, 21 Apr 2021 08:33:45 +0000 (+0200) Subject: indexer: reset query counter X-Git-Tag: v4.0.0~105 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/f7e4aa51d386bacfe6bc58073f21dabbc288c849?hp=696c50459fc3f0a905211787e509a13b4bb96ea4 indexer: reset query counter Reset the counter for queries after the asynchronous connections have been reopened. --- diff --git a/nominatim/indexer/indexer.py b/nominatim/indexer/indexer.py index a064b285..faf91c45 100644 --- a/nominatim/indexer/indexer.py +++ b/nominatim/indexer/indexer.py @@ -62,6 +62,7 @@ class WorkerPool: thread.wait() thread.connect() ready = self.threads + command_stat = 0 else: _, ready, _ = select.select([], self.threads, [])