Bug 448712. Make sure to remove the storage for an empty entry in a cache block file. r+sr=biesi

This commit is contained in:
Dave Camp 2008-07-31 17:51:51 -07:00
Родитель 8bbc56fcbc
Коммит 49dd4edce3
1 изменённых файлов: 5 добавлений и 0 удалений

5
netwerk/cache/src/nsDiskCacheStreams.cpp поставляемый
Просмотреть файл

@ -873,6 +873,11 @@ nsDiskCacheStreamIO::SetEOF()
rv = ReadCacheBlocks();
if (NS_FAILED(rv)) return rv;
}
// We need to make sure we reflect this change in Flush().
// In particular, if mStreamPos is 0 and we never write to
// the buffer, we want the storage to be deleted.
mBufDirty = PR_TRUE;
}
}