Opened 12 years ago
#4222 new enhancement
tile size of 0 bytes results in stale cache
Reported by: | tomhel | Owned by: | tbonfort |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapCache | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | |
Cc: |
Description
If a tile has no size mapcache will fail to reseed or delete this tile.
This happens because cache_disk.c, function _mapcache_cache_disk_get(...) will return MAPCACHE_FAILURE if a tile exist but is of zero size. If MAPCACHE_CACHE_MISS is returned instead it will successfully be reseeded.
mapcache_seed.c, function examine_tile(...) will have to modified to handle this case. That is the tile exist but gives a cache miss.
The attached patches contains the following changes:
- In mapcache_seed.c, function examine_tile(...) code has been added to handle the case when a cache miss is returned.
- cache_disk.c, function _mapcache_cache_disk_get(...) will now return MAPCACHE_CACHE_MISS if a tile exists, but has no size.
Attachments (2)
Change History (2)
by , 12 years ago
Attachment: | examine_tile_cache_miss.patch added |
---|
by , 12 years ago
Attachment: | return_cache_miss.patch added |
---|
cache_disk.c will return cache miss if tile exists, but has no size
Note:
See TracTickets
for help on using tickets.
handle cache miss in mapcache_seed.c, function examine_tile