1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Catch an error code that was not being propagated back to the caller.

FossilOrigin-Name: 800f496929fb0d45d16c573c5dca0197ac922e2b
This commit is contained in:
dan
2010-08-05 16:08:26 +00:00
parent 4e004aa6b9
commit 5761dbe4a3
3 changed files with 8 additions and 7 deletions

View File

@@ -3615,6 +3615,7 @@ static int syncJournal(Pager *pPager, int newHdr){
if( newHdr && 0==(iDc&SQLITE_IOCAP_SAFE_APPEND) ){
pPager->nRec = 0;
rc = writeJournalHdr(pPager);
if( rc!=SQLITE_OK ) return rc;
}
}else{
pPager->journalHdr = pPager->journalOff;