[Tile-serving] [openstreetmap/osm2pgsql] Make sure cache is freed before starting indexing (#813)

Sarah Hoffmann notifications at github.com
Sat Jan 13 21:32:46 UTC 2018


The pending processor holds shared_ptr references to the node caches. That prevents the caches from    being freed when mid::stop() is called. This change makes  sure the pending processor goes out of scope before indexing starts.

@StyXman This resolves the problem with not freeing cache memory. Turned out to be a completely different issue. So no further changes for the stop() function needed.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * make sure cache is freed before starting indexing

-- File Changes --

    M osmdata.cpp (30)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/813.patch
https://github.com/openstreetmap/osm2pgsql/pull/813.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/813
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20180113/fa39f8ea/attachment.html>


More information about the Tile-serving mailing list