aboutsummaryrefslogtreecommitdiff
path: root/src/pcache.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-09-01 12:57:33 +0000
committerdrh <drh@noemail.net>2017-09-01 12:57:33 +0000
commitdfcdc663f27897b62c6b45fcab44424afaf5b408 (patch)
tree1daa28cd9341c54e44ab735ee603856a7bee1cb9 /src/pcache.c
parentf0dae6d0a276566e384d38244b58ceda3ae58907 (diff)
downloadsqlite-dfcdc663f27897b62c6b45fcab44424afaf5b408.tar.gz
sqlite-dfcdc663f27897b62c6b45fcab44424afaf5b408.zip
Remove an obsolete optimization in pcache that due to more recent changes
was recently making the code a little slower. FossilOrigin-Name: c4e7e175eecfd79015f4fae99618dfce6baf97c21bf3c909ea535d4e12dcaaad
Diffstat (limited to 'src/pcache.c')
-rw-r--r--src/pcache.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pcache.c b/src/pcache.c
index 9687ac770..6f43a1e8a 100644
--- a/src/pcache.c
+++ b/src/pcache.c
@@ -510,11 +510,7 @@ void SQLITE_NOINLINE sqlite3PcacheRelease(PgHdr *p){
if( (--p->nRef)==0 ){
if( p->flags&PGHDR_CLEAN ){
pcacheUnpin(p);
- }else if( p->pDirtyPrev!=0 ){ /*OPTIMIZATION-IF-FALSE*/
- /* Move the page to the head of the dirty list. If p->pDirtyPrev==0,
- ** then page p is already at the head of the dirty list and the
- ** following call would be a no-op. Hence the OPTIMIZATION-IF-FALSE
- ** tag above. */
+ }else{
pcacheManageDirtyList(p, PCACHE_DIRTYLIST_FRONT);
}
}