diff options
author | drh <drh@noemail.net> | 2016-05-13 17:22:33 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-05-13 17:22:33 +0000 |
commit | 3b02a07e7d91d95467b5d8935fcbc81ae7e7f9f2 (patch) | |
tree | 579cde6179d898220d027d69ebb9c874845cc958 /src/pcache.c | |
parent | a0f6b124ad1bec65832726b4d18f3a1dec397926 (diff) | |
download | sqlite-3b02a07e7d91d95467b5d8935fcbc81ae7e7f9f2.tar.gz sqlite-3b02a07e7d91d95467b5d8935fcbc81ae7e7f9f2.zip |
Improvements to a comment in the pcache.c file. No changes to code.
FossilOrigin-Name: b369980f0c4550a9034833caa2c7c85d6030f5ff
Diffstat (limited to 'src/pcache.c')
-rw-r--r-- | src/pcache.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pcache.c b/src/pcache.c index d778f9aed..d62832033 100644 --- a/src/pcache.c +++ b/src/pcache.c @@ -129,6 +129,13 @@ int sqlite3PcachePageSanity(PgHdr *pPg){ ** in step 3, and page might be written into the database without first ** syncing the rollback journal, which might cause corruption on a power ** loss. + ** + ** Another example is when the database page size is smaller than the + ** disk sector size. When any page of a sector is journalled, all pages + ** in that sector are marked NEED_SYNC even if they are still CLEAN, just + ** in case they are later modified, since all pages in the same sector + ** must be journalled and synced before any of those pages can be safely + ** written. */ return 1; } |