mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
speed up copying of multiple local msgs r/sr=sspitzer 183560
This commit is contained in:
parent
382f78c2b5
commit
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)
|
||||
|
Loading…
Reference in New Issue
Block a user