aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2009-06-23 16:40:17 +0000
committerdanielk1977 <danielk1977@noemail.net>2009-06-23 16:40:17 +0000
commit1c3d2bf9cf3df965835cf8916b1331bcdac0705b (patch)
treec4db7b9c551919db8410d7748f4b9f83306123af /src
parentcd581a7efff9cef3b4b2bb77332531468f6d9397 (diff)
downloadsqlite-1c3d2bf9cf3df965835cf8916b1331bcdac0705b.tar.gz
sqlite-1c3d2bf9cf3df965835cf8916b1331bcdac0705b.zip
Remove a condition from balance_nonroot() that is always true. (CVS 6806)
FossilOrigin-Name: c5dc80e6bdd18a5ada728c8d5c9403ac233f1c9a
Diffstat (limited to 'src')
-rw-r--r--src/btree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c
index d4e64a336..c87401816 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -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;