/ Check-in [110998f1]
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 assert() in btree.c which is no longer true due to changes in the error reporting behavior of ptrmapPut(). (CVS 6914)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 110998f18a7ad1ddaffab048cabef675d882cbb8
User & Date: drh 2009-07-21 15:33:14
Context
2009-07-21
19:02
Additional simplifications to btree.c in support of coverage testing. (CVS 6915) check-in: 716fccea user: drh tags: trunk
15:33
Remove an assert() in btree.c which is no longer true due to changes in the error reporting behavior of ptrmapPut(). (CVS 6914) check-in: 110998f1 user: drh tags: trunk
11:52
Changes to btree.c in support of coverage testing. (CVS 6913) check-in: 4cf23e9e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

     5      5   ** a legal notice, here is a blessing:
     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12         -** $Id: btree.c,v 1.694 2009/07/21 11:52:35 drh Exp $
           12  +** $Id: btree.c,v 1.695 2009/07/21 15:33:14 drh Exp $
    13     13   **
    14     14   ** This file implements a external (disk-based) database using BTrees.
    15     15   ** See the header comment on "btreeInt.h" for additional information.
    16     16   ** Including a description of file format and an overview of operation.
    17     17   */
    18     18   #include "btreeInt.h"
    19     19   
................................................................................
  6156   6156         if( i==cntNew[k] ){
  6157   6157           /* Cell i is the cell immediately following the last cell on new
  6158   6158           ** sibling page k. If the siblings are not leaf pages of an
  6159   6159           ** intkey b-tree, then cell i is a divider cell.  */
  6160   6160           pNew = apNew[++k];
  6161   6161           if( !leafData ) continue;
  6162   6162         }
  6163         -      assert( rc==SQLITE_OK );
  6164   6163         assert( j<nOld );
  6165   6164         assert( k<nNew );
  6166   6165   
  6167   6166         /* If the cell was originally divider cell (and is not now) or
  6168   6167         ** an overflow cell, or if the cell was located on a different sibling
  6169   6168         ** page before the balancing, then the pointer map entries associated
  6170   6169         ** with any child or overflow pages need to be updated.  */