X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6e89310a9285f1ad15d8002bf68f578eada367a0..2048009600f75c55abd6f341d667dbab526194c0:/src/nominatim_db/tools/replication.py diff --git a/src/nominatim_db/tools/replication.py b/src/nominatim_db/tools/replication.py index f9421bb8..2b1d444f 100644 --- a/src/nominatim_db/tools/replication.py +++ b/src/nominatim_db/tools/replication.py @@ -18,9 +18,9 @@ import urllib.request as urlrequest import requests -from nominatim_core.errors import UsageError -from nominatim_core.db import status -from nominatim_core.db.connection import Connection, connect +from ..errors import UsageError +from ..db import status +from ..db.connection import Connection, connect, server_version_tuple from .exec_utils import run_osm2pgsql try: @@ -155,7 +155,7 @@ def run_osm2pgsql_updates(conn: Connection, options: MutableMapping[str, Any]) - # Consume updates with osm2pgsql. options['append'] = True - options['disable_jit'] = conn.server_version_tuple() >= (11, 0) + options['disable_jit'] = server_version_tuple(conn) >= (11, 0) run_osm2pgsql(options) # Handle deletions