From 8f6fdfeb0bbee88e373110d3ac64d134b4fba5b3 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 22 Jan 2020 11:18:21 +0100 Subject: [PATCH] forgot to index last rank --- nominatim/nominatim.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nominatim/nominatim.py b/nominatim/nominatim.py index bbda4d7e..6d5e4af0 100755 --- a/nominatim/nominatim.py +++ b/nominatim/nominatim.py @@ -146,7 +146,7 @@ class DBConnection(object): return True except psycopg2.extensions.TransactionRollbackError as e: if e.pgcode == '40P01': - log.debug("Deadlock detected, retry.") + log.info("Deadlock detected (params = {}), retry.".format(self.current_params)) self.cursor.execute(self.current_query, self.current_params) else: raise @@ -175,7 +175,8 @@ class Indexer(object): if self.maxrank == 30: self.index(InterpolationRunner()) - self.index(RankRunner(30)) + + self.index(RankRunner(self.maxrank)) def index(self, obj): """ Index a single rank or table. `obj` describes the SQL to use -- 2.39.5