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

Change an assert() into a NEVER(), since the condition is difficult to prove

with certainty.  Improved comment on the MemPage.nFree field.

FossilOrigin-Name: fec071b89df2cbafda365077bb54bc9999e12086f36d6cea8d125662b36638dc
This commit is contained in:
drh
2019-02-12 00:58:10 +00:00
parent 8357c662b3
commit a941ff712d
4 changed files with 10 additions and 10 deletions

View File

@@ -8295,7 +8295,7 @@ static int balance(BtCursor *pCur){
int iPage = pCur->iPage;
MemPage *pPage = pCur->pPage;
assert( pPage->nFree>=0 );
if( NEVER(pPage->nFree<0) && btreeComputeFreeSpace(pPage) ) break;
if( iPage==0 ){
if( pPage->nOverflow ){
/* The root page of the b-tree is overfull. In this case call the