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

Remove a corruption test in balance_nonroot that is superceded by a prior

better check.

FossilOrigin-Name: 00693682d8664fa608ba43684f6376a9bd5b84eb
This commit is contained in:
drh
2015-05-29 17:13:14 +00:00
parent b5a2d55ee6
commit 1f2d968622
3 changed files with 7 additions and 11 deletions

View File

@@ -7027,10 +7027,6 @@ static int balance_nonroot(
/*
** Allocate k new pages. Reuse old pages where possible.
*/
if( apOld[0]->pgno<=1 ){
rc = SQLITE_CORRUPT_BKPT;
goto balance_cleanup;
}
pageFlags = apOld[0]->aData[0];
for(i=0; i<k; i++){
MemPage *pNew;