mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
forgot to index last rank
This commit is contained in:
@@ -146,7 +146,7 @@ class DBConnection(object):
|
|||||||
return True
|
return True
|
||||||
except psycopg2.extensions.TransactionRollbackError as e:
|
except psycopg2.extensions.TransactionRollbackError as e:
|
||||||
if e.pgcode == '40P01':
|
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)
|
self.cursor.execute(self.current_query, self.current_params)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
@@ -175,7 +175,8 @@ class Indexer(object):
|
|||||||
|
|
||||||
if self.maxrank == 30:
|
if self.maxrank == 30:
|
||||||
self.index(InterpolationRunner())
|
self.index(InterpolationRunner())
|
||||||
self.index(RankRunner(30))
|
|
||||||
|
self.index(RankRunner(self.maxrank))
|
||||||
|
|
||||||
def index(self, obj):
|
def index(self, obj):
|
||||||
""" Index a single rank or table. `obj` describes the SQL to use
|
""" Index a single rank or table. `obj` describes the SQL to use
|
||||||
|
|||||||
Reference in New Issue
Block a user