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

Fix for ticket [5e10420e8d].

FossilOrigin-Name: 255f1eefa373153942c67b18b22177933657911d
This commit is contained in:
dan
2010-08-23 15:41:24 +00:00
parent 7d105f87fc
commit f48c355b33
4 changed files with 63 additions and 18 deletions

View File

@@ -4807,6 +4807,10 @@ static int allocateBtreePage(
if( !pPrevTrunk ){
memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
}else{
rc = sqlite3PagerWrite(pPrevTrunk->pDbPage);
if( rc!=SQLITE_OK ){
goto end_allocate_page;
}
memcpy(&pPrevTrunk->aData[0], &pTrunk->aData[0], 4);
}
}else{