Opened 11 years ago

Closed 11 years ago

#2512 closed defect (fixed)

GTiffDataset::FlushCache() doesn't work

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.5.3
Component: GDAL_Raster Version: 1.5.0
Severity: normal Keywords: gtiff
Cc: gaopeng

Description

It turns out that GTiffDataset::FlushCache?() never calls TIFFFlush() so the actual file descriptor isn't fflush()ed.

void GTiffDataset::FlushCache()

{
    GDALPamDataset::FlushCache();

    if( bLoadedBlockDirty && nLoadedBlock != -1 )
        FlushBlockBuf();

    CPLFree( pabyBlockBuf );
    pabyBlockBuf = NULL;
    nLoadedBlock = -1;
    bLoadedBlockDirty = FALSE;
}

Change History (2)

comment:1 Changed 11 years ago by warmerdam

Cc: gaopeng added
Owner: changed from gaopeng to warmerdam

TIFFFlush() call added in trunk (r15075) and 1.5 branch (r15076).

comment:2 Changed 11 years ago by warmerdam

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.