/ Check-in [ac8ca3ec]
Login
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 Unified Diffs Ignore Whitespace Patch

Changes to src/backup.c.

500
501
502
503
504
505
506

507

508
509
510
511
512
513
514
              rc = sqlite3PagerGet(pDestPager, iPg, &pPg);
              if( rc==SQLITE_OK ){
                rc = sqlite3PagerWrite(pPg);
                sqlite3PagerUnref(pPg);
              }
            }
          }

          rc = sqlite3PagerCommitPhaseOne(pDestPager, 0, 1);


          /* Write the extra pages and truncate the database file as required */
          iEnd = MIN(PENDING_BYTE + pgszDest, iSize);
          for(
            iOff=PENDING_BYTE+pgszSrc; 
            rc==SQLITE_OK && iOff<iEnd; 
            iOff+=pgszSrc







>
|
>







500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
              rc = sqlite3PagerGet(pDestPager, iPg, &pPg);
              if( rc==SQLITE_OK ){
                rc = sqlite3PagerWrite(pPg);
                sqlite3PagerUnref(pPg);
              }
            }
          }
          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);
          for(
            iOff=PENDING_BYTE+pgszSrc; 
            rc==SQLITE_OK && iOff<iEnd; 
            iOff+=pgszSrc