mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Modifications to malloc5.test to account for the fact that sqlite3_release_memory() no longer reclaims dirty pages. (CVS 5625)
FossilOrigin-Name: b01c65b065c62e3dd71e88866a953668b5e2f25f
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*************************************************************************
|
||||
** This file implements that page cache.
|
||||
**
|
||||
** @(#) $Id: pcache.c,v 1.17 2008/08/27 15:16:34 danielk1977 Exp $
|
||||
** @(#) $Id: pcache.c,v 1.18 2008/08/27 16:38:57 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -553,7 +553,7 @@ static int pcacheRecycleOrAlloc(PCache *pCache, PgHdr **ppPage){
|
||||
}
|
||||
|
||||
/* If the global page limit has been reached, try to recycle a page. */
|
||||
if( pcache.nCurrentPage>=pcache.nMaxPage ){
|
||||
if( pCache->bPurgeable && pcache.nCurrentPage>=pcache.nMaxPage ){
|
||||
p = pcacheRecyclePage();
|
||||
}
|
||||
|
||||
@@ -620,7 +620,7 @@ void sqlite3PcacheOpen(
|
||||
p->xStress = xStress;
|
||||
p->pStress = pStress;
|
||||
p->nMax = 100;
|
||||
p->nMin = 20;
|
||||
p->nMin = 10;
|
||||
|
||||
pcacheEnterGlobal();
|
||||
if( bPurgeable ){
|
||||
|
||||
Reference in New Issue
Block a user