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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user