1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Catch a dropped error code in backup.c.

FossilOrigin-Name: ac8ca3ecee4d81bf522b330033e5d85638063670
This commit is contained in:
dan
2013-02-25 07:12:40 +00:00
parent 9138471141
commit 896f99e942
3 changed files with 10 additions and 8 deletions

View File

@@ -504,7 +504,9 @@ int sqlite3_backup_step(sqlite3_backup *p, int nPage){
}
}
}
rc = sqlite3PagerCommitPhaseOne(pDestPager, 0, 1);
if( rc==SQLITE_OK ){
rc = sqlite3PagerCommitPhaseOne(pDestPager, 0, 1);
}
/* Write the extra pages and truncate the database file as required */
iEnd = MIN(PENDING_BYTE + pgszDest, iSize);