1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Remove a condition from balance_nonroot() that is always true. (CVS 6806)

FossilOrigin-Name: c5dc80e6bdd18a5ada728c8d5c9403ac233f1c9a
This commit is contained in:
danielk1977
2009-06-23 16:40:17 +00:00
parent cd581a7eff
commit 1c3d2bf9cf
3 changed files with 10 additions and 9 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.640 2009/06/23 15:43:40 danielk1977 Exp $
** $Id: btree.c,v 1.641 2009/06/23 16:40:18 danielk1977 Exp $
**
** This file implements a external (disk-based) database using BTrees.
** See the header comment on "btreeInt.h" for additional information.
@@ -5861,7 +5861,8 @@ static int balance_nonroot(
/* If the sibling page assembled above was not the right-most sibling,
** insert a divider cell into the parent page.
*/
if( i<nNew-1 && j<nCell ){
assert( i<nNew-1 || j==nCell );
if( j<nCell ){
u8 *pCell;
u8 *pTemp;
int sz;