aboutsummaryrefslogtreecommitdiff
path: root/src/pcache.c
diff options
context:
space:
mode:
authordrh <>2022-03-21 18:48:31 +0000
committerdrh <>2022-03-21 18:48:31 +0000
commitc63e40956b346035aca581378572dbbf7834c3ab (patch)
tree6093720177a88b9ae12cb5207efab0b67fb826d5 /src/pcache.c
parentbd5fb3a88814c06f52562e7678210566207bc9b3 (diff)
downloadsqlite-c63e40956b346035aca581378572dbbf7834c3ab.tar.gz
sqlite-c63e40956b346035aca581378572dbbf7834c3ab.zip
Some branches are no longer reachable after the previous change. Mark them
accordingly. Also improve comments. FossilOrigin-Name: 88d69f60cceb22bde42cfe43c23259c7bad47b8e06f918a79bd089a77b480d46
Diffstat (limited to 'src/pcache.c')
-rw-r--r--src/pcache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pcache.c b/src/pcache.c
index 76cc4bb7a..14d1e7cde 100644
--- a/src/pcache.c
+++ b/src/pcache.c
@@ -551,8 +551,7 @@ void sqlite3PcacheDrop(PgHdr *p){
** make it so.
*/
void sqlite3PcacheMakeDirty(PgHdr *p){
- assert( p->nRef>0 || p->pCache->bPurgeable==0 );
- testcase( p->nRef==0 );
+ assert( p->nRef>0 );
assert( sqlite3PcachePageSanity(p) );
if( p->flags & (PGHDR_CLEAN|PGHDR_DONT_WRITE) ){ /*OPTIMIZATION-IF-FALSE*/
p->flags &= ~PGHDR_DONT_WRITE;