need to do a SessionCommit, not a SmallCommit, to get the changes

written out to disk
This commit is contained in:
sspitzer%netscape.com 1999-04-12 20:10:42 +00:00
Родитель f3e4bfd5d8
Коммит 438e2e98d6
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -103,7 +103,13 @@ nsresult newsTestDriver::RunDriver()
newMsgHdr->Release();
newMsgHdr = nsnull;
m_newsDB->Commit(kSmallCommit);
/* closing the newsDB isn't enough. something still has
* reference to it. (need to look into this, bienvenu
* suggests nsMsgFolderInfo?)
* for now, we need to Commit() to force the changes
* to the disk
*/
m_newsDB->Commit(kSessionCommit);
m_newsDB->Close(PR_TRUE);
}