SQLite
Check-in [717863fc]
Not logged in
Overview
SHA1 Hash:717863fca6d58828bf9321bc8b169e385ad4263f
Date: 2013-03-05 11:27:04
User: dan
Comment:Fix a bug in the recent incremental-vacuum related changes.
Tags And Properties
Context
2013-03-06
01:48
[ce4ac66a] Add the SQLITE_READONLY_ROLLBACK extended error code. Do not try to set the permissions on journal or wal files except if the filesize is initially zero (indicating that it is a new file.) (user: drh, tags: trunk)
2013-03-05
16:54
[4e6e07a6] Failed merge experimental branch with trunk. (user: dan, tags: ex-robust-open)
15:09
[39247b14] Add extended error code SQLITE_READONLY_ROLLBACK. Returned if a read-only connection cannot read the database because doing so would require it to roll back a hot-journal. (user: dan, tags: experimental)
11:27
[717863fc] Fix a bug in the recent incremental-vacuum related changes. (user: dan, tags: trunk)
01:46
[8e0ced1a] Simplified error message on the showdb utility. (user: drh, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/btree.c

3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
          releasePage(pLastPg);
          return rc;
        }
        releasePage(pFreePg);
      }while( bCommit && iFreePg>nFin );
      assert( iFreePg<iLastPg );
      
      rc = relocatePage(pBt, pLastPg, eType, iPtrPage, iFreePg, nFin!=0);
      releasePage(pLastPg);
      if( rc!=SQLITE_OK ){
        return rc;
      }
    }
  }








|







3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
          releasePage(pLastPg);
          return rc;
        }
        releasePage(pFreePg);
      }while( bCommit && iFreePg>nFin );
      assert( iFreePg<iLastPg );
      
      rc = relocatePage(pBt, pLastPg, eType, iPtrPage, iFreePg, bCommit);
      releasePage(pLastPg);
      if( rc!=SQLITE_OK ){
        return rc;
      }
    }
  }