aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/pcache1.c6
-rw-r--r--src/sqlite.h.in2
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>