[Tile-serving] [openstreetmap/osm2pgsql] Refactor pending processor (#1176)

Jochen Topf notifications at github.com
Thu May 21 08:44:26 UTC 2020


@joto commented on this pull request.



>          for (auto const &clone : m_clones) {
-            for (output_vec_t::const_iterator
-                     original_output = m_outputs.begin(),
-                     clone_output = clone.begin();
-                 original_output != m_outputs.end() &&
-                 clone_output != clone.end();
-                 ++original_output, ++clone_output) {
-                //merge the expire tree from this threads copy of output back
-                original_output->get()->merge_expire_trees(clone_output->get());
+            auto it = clone.begin();
+            for (auto const &output : m_outputs) {
+                assert(it != clone.end());
+                if (*it) {
+                    output->merge_expire_trees(it->get());
+                }
+                ++it;

Will be in a separate PR.

-- 
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/1176#discussion_r428524545
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200521/341fe97b/attachment.htm>


More information about the Tile-serving mailing list