aboutsummaryrefslogtreecommitdiff
path: root/src/pcache.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-05-12 12:08:48 +0000
committerdrh <drh@noemail.net>2016-05-12 12:08:48 +0000
commit91ef8ad42ceee04388ba471dfc8482ccaed91cc2 (patch)
tree8b41393ed119c7d78bdf0120212a08cd1e07ae85 /src/pcache.c
parent42bee5f4d6cefc9e467d6c7203a530f815e42b36 (diff)
parent72e6a399073fd63bb5e8bc1db07a95365d2a2e2b (diff)
downloadsqlite-91ef8ad42ceee04388ba471dfc8482ccaed91cc2.tar.gz
sqlite-91ef8ad42ceee04388ba471dfc8482ccaed91cc2.zip
For in-memory databases, it does not matter if pcache entries are marked
"clean" or "writable". FossilOrigin-Name: 06c1e27ca868f247f8c27b03eb19aac004f28650
Diffstat (limited to 'src/pcache.c')
-rw-r--r--src/pcache.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pcache.c b/src/pcache.c
index fab6ad32a..ee7914a44 100644
--- a/src/pcache.c
+++ b/src/pcache.c
@@ -14,7 +14,13 @@
#include "sqliteInt.h"
/*
-** A complete page cache is an instance of this structure.
+** A complete page cache is an instance of this structure. Every
+** entry in the cache holds a single page of the database file. The
+** btree layer only operates on the cached copy of the database pages.
+**
+** A page cache entry is "clean" if it exactly matches what is currently
+** on disk. A page is "dirty" if it has been modified and needs to be
+** persisted to disk.
**
** pDirty, pDirtyTail, pSynced:
** All dirty pages are linked into the doubly linked list using