/ Check-in [c1691d99]
Login

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

Overview
Comment:Remove an incorrect assert() in btree.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c1691d998a03fee3bef137ccf2e8ca45acac2df4
User & Date: drh 2012-01-02 16:38:57
Context
2012-01-02
18:00
Change page quantities in pcache1.c to unsigned. check-in: da52e6e8 user: drh tags: trunk
16:38
Remove an incorrect assert() in btree.c. check-in: c1691d99 user: drh tags: trunk
15:45
Make sure large negative arguments to PRAGMA cache_size do not cause 32-bit signed integer overflow. Also correct a requirements mark. check-in: 17c30634 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  6199   6199       szNew[i] = szRight;
  6200   6200       szNew[i-1] = szLeft;
  6201   6201     }
  6202   6202   
  6203   6203     /* Either we found one or more cells (cntnew[0])>0) or pPage is
  6204   6204     ** a virtual root page.  A virtual root page is when the real root
  6205   6205     ** page is page 1 and we are the only child of that page.
         6206  +  **
         6207  +  ** UPDATE:  The assert() below is not necessarily true if the database
         6208  +  ** file is corrupt.  The corruption will be detected and reported later
         6209  +  ** in this procedure so there is no need to act upon it now.
  6206   6210     */
         6211  +#if 0
  6207   6212     assert( cntNew[0]>0 || (pParent->pgno==1 && pParent->nCell==0) );
         6213  +#endif
  6208   6214   
  6209   6215     TRACE(("BALANCE: old: %d %d %d  ",
  6210   6216       apOld[0]->pgno, 
  6211   6217       nOld>=2 ? apOld[1]->pgno : 0,
  6212   6218       nOld>=3 ? apOld[2]->pgno : 0
  6213   6219     ));
  6214   6220