aboutsummaryrefslogtreecommitdiff
path: root/src/pcache1.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-01-14 15:17:55 +0000
committerdrh <drh@noemail.net>2011-01-14 15:17:55 +0000
commit94e7bd55bd94ad33a6eb7bfab6016800d64af3d7 (patch)
tree58c9660deaa6cff2c8c5a2eed70ef4f77ab65019 /src/pcache1.c
parent47e909bb15b6b7026439555e3df7454f63ffd6f3 (diff)
downloadsqlite-94e7bd55bd94ad33a6eb7bfab6016800d64af3d7.tar.gz
sqlite-94e7bd55bd94ad33a6eb7bfab6016800d64af3d7.zip
Fix comments, including some documentation comments, in the page cache
logic. No code changes. FossilOrigin-Name: c80e9c1a0dc0e501b209874e147e1cb1348cb4a4
Diffstat (limited to 'src/pcache1.c')
-rw-r--r--src/pcache1.c6
1 files changed, 1 insertions, 5 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;