[Tile-serving] [osm2pgsql-dev/osm2pgsql] Remove support for legacy middle database format (PR #2172)
Jochen Topf
notifications at github.com
Thu Apr 11 10:06:10 UTC 2024
@joto commented on this pull request.
> @@ -231,17 +231,7 @@ static void check_db_format(properties_t const &properties, options_t *options)
{
auto const format = properties.get_int("db_format", -1);
- if (format == -1) {
- // db_format not set, so this is a legacy import
- return;
- }
-
- if (format == 0) {
- throw std::runtime_error{
- "This database is not updatable (db_format=0)."};
- }
This case was done earlier (in the `check_updatable()` function). I found some more improvements/simplifications I could do to that checking code and added another commit with that.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2172#discussion_r1560771247
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2172/review/1993795039 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240411/243423a7/attachment.htm>
More information about the Tile-serving
mailing list