Bug 782616 - Don't treat SetJournalMode's return type as nsresult; r=mak

This commit is contained in:
Aryeh Gregor 2012-08-14 12:10:42 +03:00
parent 110dd3d68d
commit 3d59821c90

View File

@ -560,7 +560,7 @@ Database::InitSchema(bool* aDatabaseMigrated)
// Be sure to set journal mode after page_size. WAL would prevent the change
// otherwise.
if (NS_SUCCEEDED(SetJournalMode(mMainConn, JOURNAL_WAL))) {
if (JOURNAL_WAL == SetJournalMode(mMainConn, JOURNAL_WAL)) {
// Set the WAL journal size limit. We want it to be small, since in
// synchronous = NORMAL mode a crash could cause loss of all the
// transactions in the journal. For added safety we will also force