/ Check-in [ac8ca3ec]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Catch a dropped error code in backup.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | incr-vacuum-opt
Files: files | file ages | folders
SHA1: ac8ca3ecee4d81bf522b330033e5d85638063670
User & Date: dan 2013-02-25 07:12:40
Context
2013-02-25
12:06
Add test file incrvacuum3.test. No code changes. Closed-Leaf check-in: bf575341 user: dan tags: incr-vacuum-opt
07:12
Catch a dropped error code in backup.c. check-in: ac8ca3ec user: dan tags: incr-vacuum-opt
2013-02-24
11:50
Fix a case where database corruption may cause an assert() to fail. check-in: ba33bb05 user: dan tags: incr-vacuum-opt
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/backup.c.

   500    500                 rc = sqlite3PagerGet(pDestPager, iPg, &pPg);
   501    501                 if( rc==SQLITE_OK ){
   502    502                   rc = sqlite3PagerWrite(pPg);
   503    503                   sqlite3PagerUnref(pPg);
   504    504                 }
   505    505               }
   506    506             }
   507         -          rc = sqlite3PagerCommitPhaseOne(pDestPager, 0, 1);
          507  +          if( rc==SQLITE_OK ){
          508  +            rc = sqlite3PagerCommitPhaseOne(pDestPager, 0, 1);
          509  +          }
   508    510   
   509    511             /* Write the extra pages and truncate the database file as required */
   510    512             iEnd = MIN(PENDING_BYTE + pgszDest, iSize);
   511    513             for(
   512    514               iOff=PENDING_BYTE+pgszSrc; 
   513    515               rc==SQLITE_OK && iOff<iEnd; 
   514    516               iOff+=pgszSrc