osm2pgsql-dev / osm2pgsql

OpenStreetMap data to PostgreSQL converter
https://osm2pgsql.org
GNU General Public License v2.0
1.48k stars 473 forks source link

Replication: guess date from file when state info is not available #2213

Closed lonvia closed 2 months ago

lonvia commented 2 months ago

If a replication server becomes unavailable at an inconvenient time, it can happen that the replication script has retrieved a diff but cannot get the attached state file in order to determine the date of the data. Guess a date from the date in the diff file in such case. If that doesn't work either, simply leave the date in the status at whatever it was before.

Fixes #2195.