mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
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:
parent
8bbc56fcbc
commit
49dd4edce3
5
netwerk/cache/src/nsDiskCacheStreams.cpp
vendored
5
netwerk/cache/src/nsDiskCacheStreams.cpp
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user