aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-08-19 14:22:42 +0000
committerdrh <drh@noemail.net>2010-08-19 14:22:42 +0000
commit6b47fcacb4ea4d46b1819ec1b9eb0bd18fa81be2 (patch)
tree82559f1c96ad141b0d73b35c22a42847421faf90 /src
parente22e03e210c5063384984a2e3b2ff41d3c25b984 (diff)
downloadsqlite-6b47fcacb4ea4d46b1819ec1b9eb0bd18fa81be2.tar.gz
sqlite-6b47fcacb4ea4d46b1819ec1b9eb0bd18fa81be2.zip
Remove a NEVER from balance_quick() that can occur in WAL mode on
a corrupt database file. FossilOrigin-Name: b273891ab05a18b68a76c870ea3be9f1a56c40a9
Diffstat (limited to 'src')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index 7a4105712..f6110a911 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -5560,7 +5560,7 @@ static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){
assert( pPage->nOverflow==1 );
/* This error condition is now caught prior to reaching this function */
- if( NEVER(pPage->nCell<=0) ) return SQLITE_CORRUPT_BKPT;
+ if( pPage->nCell<=0 ) return SQLITE_CORRUPT_BKPT;
/* Allocate a new page. This page will become the right-sibling of
** pPage. Make the parent page writable, so that the new divider cell