fix compact folder performance regression, r=cavin, sr=sspitzer 182262

This commit is contained in:
bienvenu%netscape.com 2002-12-04 00:40:19 +00:00
Родитель 89bb676522
Коммит db19ac7188
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;
}