]> git.openstreetmap.org Git - nominatim.git/commitdiff
indexer: reset query counter
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 21 Apr 2021 08:33:45 +0000 (10:33 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 21 Apr 2021 08:33:45 +0000 (10:33 +0200)
Reset the counter for queries after the asynchronous connections
have been reopened.

nominatim/indexer/indexer.py

index a064b28580168cca6cb26a32bc1e398ea3f43442..faf91c456b1eb9bd0d6a00d8e1f396f8fd846ab7 100644 (file)
@@ -62,6 +62,7 @@ class WorkerPool:
                         thread.wait()
                     thread.connect()
                 ready = self.threads
+                command_stat = 0
             else:
                 _, ready, _ = select.select([], self.threads, [])