[Tile-serving] [osm2pgsql-dev/osm2pgsql] Introduce per geometry and overall limits on number of expire tiles (PR #2449)

Jochen Topf notifications at github.com
Fri Jan 30 09:26:06 UTC 2026


@joto commented on this pull request.



> +        m_overall_tile_limit_reached = true;
+        log_warn("Overall tile limit {} reached for this run!",
+                 m_max_tiles_overall);
+        return;
+    }
+
+    m_tiles.insert(dirty_tiles.cbegin(), dirty_tiles.cend());
+}
+
+bool expire_output_t::empty() noexcept
+{
+    std::lock_guard<std::mutex> const guard{*m_tiles_mutex};
+    return m_tiles.empty();
+}
+
+quadkey_list_t expire_output_t::get_tiles()

It isn't called in the place where there are multiple threads, but to be safe it is better to do that, you are right.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2449#discussion_r2745377702
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2449/review/3727225784 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260130/33443740/attachment.htm>


More information about the Tile-serving mailing list