aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2010-09-22 19:06:02 +0000
committerdan <dan@noemail.net>2010-09-22 19:06:02 +0000
commitb51d2fa88ddd550302e065c4df50da7675cea4ac (patch)
treedf522412fa66d9f0acd2c289d2794a73b06dde06 /src
parentbd188afd4cb806ace1faf8f99fed672833c54b76 (diff)
downloadsqlite-b51d2fa88ddd550302e065c4df50da7675cea4ac.tar.gz
sqlite-b51d2fa88ddd550302e065c4df50da7675cea4ac.zip
Further tests and changes to make the r-tree module more robust.
FossilOrigin-Name: 7ff3574b9c581b5e1f2b6f98028106c638e59bb7
Diffstat (limited to 'src')
-rw-r--r--src/pcache1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pcache1.c b/src/pcache1.c
index 633e1202e..abf57dc34 100644
--- a/src/pcache1.c
+++ b/src/pcache1.c
@@ -767,6 +767,7 @@ static void pcache1Truncate(sqlite3_pcache *p, unsigned int iLimit){
*/
static void pcache1Destroy(sqlite3_pcache *p){
PCache1 *pCache = (PCache1 *)p;
+ assert( pCache->bPurgeable || (pCache->nMax==0 && pCache->nMin==0) );
pcache1EnterMutex();
pcache1TruncateUnsafe(pCache, 0);
pcache1.nMaxPage -= pCache->nMax;