mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Remove a NEVER from balance_quick() that can occur in WAL mode on
a corrupt database file. FossilOrigin-Name: b273891ab05a18b68a76c870ea3be9f1a56c40a9
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user