[Tile-serving] [openstreetmap/osm2pgsql] Fix counter initialisation in wkb_reader (#781)

Sarah Hoffmann notifications at github.com
Sat Aug 12 21:31:18 UTC 2017


The counter in wkb_reader was always initialized with 0 (`result` being nullptr after having just been moved to `m_result`). So expiry from_db() has not been doing anything for a long time now.

As a test, import a single way and then append a change which modifies a node on this way.

@Nakaner Would you mind running this change through your setup? It is more extensive then my tests when it comes to expiry.

Fixes #766.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/781

-- Commit Summary --

  * fix counter initialisation in wkb_reader

-- File Changes --

    M table.hpp (2)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/781.patch
https://github.com/openstreetmap/osm2pgsql/pull/781.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/781
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170812/3f8eab1b/attachment.html>


More information about the Tile-serving mailing list