diff options
Diffstat (limited to 'src/pcache1.c')
-rw-r--r-- | src/pcache1.c | 1 |
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; |