Opened 20 years ago

Last modified 20 years ago

#542 closed defect (fixed)

GDALSetCacheMax doesn't reduse the amount of used cache properly

Reported by: daniel112@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description

If you call GDALSetCacheMax() with a value thats lower than the amount of used
cache GDALSetCacheMax() calls GDALFlushCacheBlock() but only once instead of
until nCacheUsed is lower than nCacheMax.

Change History (1)

comment:1 by warmerdam, 20 years ago

Daniel, 

I have committed a fix for this, though I haven't actually confirmed that
it works properly. 

Thanks!

Note: See TracTickets for help on using tickets.