[Tile-serving] [osm2pgsql] node-cache: fix prefetching (#353)

Paul Norman notifications at github.com
Tue May 26 03:30:39 UTC 2015


>      for (size_t i = 0; i < nds.size(); ++i) {
>          /* Check cache first */
> -        if (ram_cache && (ram_cache->get(&out[i], nds[i]) != 0)) {
> +        if (!ram_cache || (ram_cache->get(&out[i], nds[i]) == 0)) {

This line is the one causing the problems described in https://github.com/openstreetmap/osm2pgsql/issues/351#issuecomment-105362202

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/353/files#r31002607
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150525/a1d98bd8/attachment-0001.html>


More information about the Tile-serving mailing list