mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
fix compact folder performance regression, r=cavin, sr=sspitzer 182262
This commit is contained in:
parent
89bb676522
commit
db19ac7188
@ -680,8 +680,10 @@ nsFolderCompactState::StartMessage()
|
||||
NS_ASSERTION(m_fileStream, "Fatal, null m_fileStream...\n");
|
||||
if (m_fileStream)
|
||||
{
|
||||
// this will force an internal flush, but not a sync. Tell should really do an internal flush,
|
||||
// but it doesn't, and I'm afraid to change that nsIFileStream.cpp code anymore.
|
||||
m_fileStream->seek(PR_SEEK_CUR, 0);
|
||||
// record the new message key for the message
|
||||
m_fileStream->flush();
|
||||
m_startOfNewMsg = m_fileStream->tell();
|
||||
rv = NS_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user