зеркало из https://github.com/mozilla/gecko-dev.git
speed up copying of multiple local msgs r/sr=sspitzer 183560
This commit is contained in:
Родитель
382f78c2b5
Коммит
7619c18d99
|
@ -2576,10 +2576,7 @@ NS_IMETHODIMP nsMsgLocalMailFolder::EndCopy(PRBool copySucceeded)
|
|||
mCopyState->m_fromLineSeen = PR_FALSE;
|
||||
// flush the copied message.
|
||||
if (mCopyState->m_fileStream)
|
||||
{
|
||||
rv = mCopyState->m_fileStream->flush();
|
||||
NS_ENSURE_SUCCESS(rv,rv);
|
||||
}
|
||||
mCopyState->m_fileStream->seek(PR_SEEK_CUR, 0); // seeking causes a flush, w/o syncing
|
||||
}
|
||||
//Copy the header to the new database
|
||||
if(copySucceeded && mCopyState->m_message)
|
||||
|
|
Загрузка…
Ссылка в новой задаче