[Tile-serving] [openstreetmap/osm2pgsql] Fix multistage processing (take 2) (#1215)

Jochen Topf notifications at github.com
Mon Jun 22 08:38:16 UTC 2020


@joto commented on this pull request.



> +    multithreaded_processor proc{m_conninfo, m_mid, m_outs,
+                                 (std::size_t)m_num_procs};
+
+    // stage 1b processing
+    proc.process_ways(m_dependency_manager->get_pending_way_ids());
+    proc.process_relations(m_dependency_manager->get_pending_relation_ids());
+    proc.merge_expire_trees();
+
+    // If none of the outputs wants to do stage 2 processing, we can skip
+    // stage 1c.
+    if (std::none_of(m_outs.cbegin(), m_outs.cend(),
+                     [](std::shared_ptr<output_t> const &out) {
+                         return out->has_stage2_processing();
+                     })) {
+        return;
+    }

Okay. Fixed.

-- 
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/1215#discussion_r443402067
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200622/b70aeecc/attachment.htm>


More information about the Tile-serving mailing list