/ Check-in [00693682]
Login

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

Overview
Comment:Remove a corruption test in balance_nonroot that is superceded by a prior better check.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 00693682d8664fa608ba43684f6376a9bd5b84eb
User & Date: drh 2015-05-29 17:13:14
Context
2015-05-29
17:51
Move two unreachable conditionals inside of NEVER() or assert(). check-in: db4e9728 user: drh tags: trunk
17:13
Remove a corruption test in balance_nonroot that is superceded by a prior better check. check-in: 00693682 user: drh tags: trunk
15:15
Omit the rowallock.test script (Read-Only WAL lock) from the inmemory_journal permutation. check-in: d21db330 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  7023   7023       nOld>=2 ? apOld[1]->pgno : 0, nOld>=2 ? apOld[1]->nCell : 0,
  7024   7024       nOld>=3 ? apOld[2]->pgno : 0, nOld>=3 ? apOld[2]->nCell : 0
  7025   7025     ));
  7026   7026   
  7027   7027     /*
  7028   7028     ** Allocate k new pages.  Reuse old pages where possible.
  7029   7029     */
  7030         -  if( apOld[0]->pgno<=1 ){
  7031         -    rc = SQLITE_CORRUPT_BKPT;
  7032         -    goto balance_cleanup;
  7033         -  }
  7034   7030     pageFlags = apOld[0]->aData[0];
  7035   7031     for(i=0; i<k; i++){
  7036   7032       MemPage *pNew;
  7037   7033       if( i<nOld ){
  7038   7034         pNew = apNew[i] = apOld[i];
  7039   7035         apOld[i] = 0;
  7040   7036         rc = sqlite3PagerWrite(pNew->pDbPage);