SQLite
Check-in [ac8ca3ec]
Not logged in
Overview
SHA1 Hash:ac8ca3ecee4d81bf522b330033e5d85638063670
Date: 2013-02-25 07:12:40
User: dan
Comment:Catch a dropped error code in backup.c.
Tags And Properties
Context
2013-02-25
12:06
[bf575341] Closed-Leaf: Add test file incrvacuum3.test. No code changes. (user: dan, tags: incr-vacuum-opt)
07:12
[ac8ca3ec] Catch a dropped error code in backup.c. (user: dan, tags: incr-vacuum-opt)
2013-02-24
11:50
[ba33bb05] Fix a case where database corruption may cause an assert() to fail. (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