aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2009-04-29 06:27:56 +0000
committerdanielk1977 <danielk1977@noemail.net>2009-04-29 06:27:56 +0000
commit7b801388f54c7af21192e13155ef8f955a0be213 (patch)
treea737fcf3d3e27ea2b8ee5c78d5a50496c4c4ad74 /src
parent8ad38a7d18b2b51e552381f24b58008107d82195 (diff)
downloadsqlite-7b801388f54c7af21192e13155ef8f955a0be213.tar.gz
sqlite-7b801388f54c7af21192e13155ef8f955a0be213.zip
Simplify a conditional expression in btree.c. (CVS 6565)
FossilOrigin-Name: fc3a5ac2353142082fe14d47f9c2b662407ea3f7
Diffstat (limited to 'src')
-rw-r--r--src/btree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c
index 1a8ddf358..ec1957bf5 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.596 2009/04/19 20:51:07 drh Exp $
+** $Id: btree.c,v 1.597 2009/04/29 06:27:57 danielk1977 Exp $
**
** This file implements a external (disk-based) database using BTrees.
** See the header comment on "btreeInt.h" for additional information.
@@ -4980,7 +4980,7 @@ static int insertCell(
CellInfo info;
sqlite3BtreeParseCellPtr(pPage, pCell, &info);
assert( (info.nData+(pPage->intKey?0:info.nKey))==info.nPayload );
- if( (info.nData+(pPage->intKey?0:info.nKey))>info.nLocal ){
+ if( info.iOverflow ){
Pgno pgnoOvfl = get4byte(&pCell[info.iOverflow]);
rc = ptrmapPut(pPage->pBt, pgnoOvfl, PTRMAP_OVERFLOW1, pPage->pgno);
if( rc!=SQLITE_OK ) return rc;