diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pcache1.c | 6 | ||||
-rw-r--r-- | src/sqlite.h.in | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/pcache1.c b/src/pcache1.c index abf57dc34..2485ffa09 100644 --- a/src/pcache1.c +++ b/src/pcache1.c @@ -688,11 +688,7 @@ static void pcache1Unpin(sqlite3_pcache *p, void *pPg, int reuseUnlikely){ pcache1RemoveFromHash(pPage); pcache1FreePage(pPage); }else{ - /* Add the page to the global LRU list. Normally, the page is added to - ** the head of the list (last page to be recycled). However, if the - ** reuseUnlikely flag passed to this function is true, the page is added - ** to the tail of the list (first page to be recycled). - */ + /* Add the page to the global LRU list. */ if( pcache1.pLruHead ){ pcache1.pLruHead->pLruPrev = pPage; pPage->pLruNext = pcache1.pLruHead; diff --git a/src/sqlite.h.in b/src/sqlite.h.in index 79a1e0810..27121072a 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -5737,7 +5737,7 @@ typedef struct sqlite3_pcache sqlite3_pcache; ** If the requested page is already in the page cache, then the page cache ** implementation must return a pointer to the page buffer with its content ** intact. If the requested page is not already in the cache, then the -** behavior of the cache implementation should use the value of the createFlag +** cache implementation should use the value of the createFlag ** parameter to help it determined what action to take: ** ** <table border=1 width=85% align=center> |