1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Fix a performance glitch that appears for large transactions.

FossilOrigin-Name: 26cb1df73504d5d883cf0967e57b46aa062d0b00
This commit is contained in:
drh
2010-02-04 17:38:31 +00:00
parent b4a1fed2ea
commit a963896796
3 changed files with 11 additions and 10 deletions

View File

@@ -242,6 +242,7 @@ int sqlite3PcacheFetch(
pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
pPg=pPg->pDirtyPrev
);
pCache->pSynced = pPg;
if( !pPg ){
for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
}