/ Check-in [bddf3956]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Remove an unnecessary corruption test from the btree balancer. If corruption is present, it will be found harmlessly by later tests.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bddf39562d08e259c43dd59b82afb62fe0eb2eef
User & Date: drh 2017-01-12 16:14:33
Context
2017-01-12
16:21
Fix harmless compiler warnings in the UPDATE code generator. check-in: 385db266 user: drh tags: trunk
16:14
Remove an unnecessary corruption test from the btree balancer. If corruption is present, it will be found harmlessly by later tests. check-in: bddf3956 user: drh tags: trunk
15:11
Improved detection of cells that extend into the reserved space at the end of the page while adjusting overflow page pointers during autovacuum. check-in: 8097712c user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  7267   7267     ** usableSpace: Number of bytes of space available on each sibling.
  7268   7268     ** 
  7269   7269     */
  7270   7270     usableSpace = pBt->usableSize - 12 + leafCorrection;
  7271   7271     for(i=0; i<nOld; i++){
  7272   7272       MemPage *p = apOld[i];
  7273   7273       szNew[i] = usableSpace - p->nFree;
  7274         -    if( szNew[i]<0 ){ rc = SQLITE_CORRUPT_BKPT; goto balance_cleanup; }
  7275   7274       for(j=0; j<p->nOverflow; j++){
  7276   7275         szNew[i] += 2 + p->xCellSize(p, p->apOvfl[j]);
  7277   7276       }
  7278   7277       cntNew[i] = cntOld[i];
  7279   7278     }
  7280   7279     k = nOld;
  7281   7280     for(i=0; i<k; i++){