[Tile-serving] [osm2pgsql-dev/osm2pgsql] Replication: make sure that the computed start state is valid (PR #2212)

Sarah Hoffmann notifications at github.com
Fri Jul 12 12:20:00 UTC 2024


Adds checks to make sure that the requested state file actually still exists on the replication server and that the date of the state file is earlier than the requested start date.

These checks are mainly useful for the Geofabrik extracts servers which keep diffs only for a couple of months. If your extract is too old, the init command will now throw an error.

See also #2206.
You can view, comment on, or merge this pull request online at:

  https://github.com/osm2pgsql-dev/osm2pgsql/pull/2212

-- Commit Summary --

  * make sure diffs are recent enough when initialising replication

-- File Changes --

    M scripts/osm2pgsql-replication (18)
    M tests/bdd/command-line/replication.feature (50)
    M tests/bdd/command-line/replication_legacy.feature (4)
    M tests/bdd/steps/replication_server_mock.py (2)

-- Patch Links --

https://github.com/osm2pgsql-dev/osm2pgsql/pull/2212.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2212.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2212
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2212 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240712/70ddf7f0/attachment.htm>


More information about the Tile-serving mailing list