mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Do not journal the content of freelist leaf pages. This restores an
optimization that was accidently undone by check-in [12f7346c13] on [2009-01-20]. FossilOrigin-Name: b1e7a1a677e1c2a6c2ab83a67070605465a3e495
This commit is contained in:
@@ -3832,7 +3832,7 @@ int sqlite3PagerAcquire(
|
||||
assert( (*ppPage)->pgno==pgno );
|
||||
assert( (*ppPage)->pPager==pPager || (*ppPage)->pPager==0 );
|
||||
|
||||
if( (*ppPage)->pPager ){
|
||||
if( (*ppPage)->pPager && !noContent ){
|
||||
/* In this case the pcache already contains an initialized copy of
|
||||
** the page. Return without further ado. */
|
||||
assert( pgno<=PAGER_MAX_PGNO && pgno!=PAGER_MJ_PGNO(pPager) );
|
||||
|
Reference in New Issue
Block a user