[Tile-serving] [openstreetmap/osm2pgsql] Bugfix: Threading problem in db_copy_thread_t (#1033)

Jochen Topf notifications at github.com
Wed Dec 18 15:17:27 UTC 2019


The finish_copy() method was called from the main program and from the
copy thread leading to a race condition.

I have fixed not only this but clearly separated out everything
happening in the main thread from everything in the copy thread by
putting the code for the latter into its own class. This way a
problem like this can not happen again.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Bugfix: Threading problem in db_copy_thread_t

-- File Changes --

    M src/db-copy.cpp (89)
    M src/db-copy.hpp (61)

-- Patch Links --

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


More information about the Tile-serving mailing list