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:
@@ -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{
|
||||
|
Reference in New Issue
Block a user