1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Improvements to a comment in the pcache.c file. No changes to code.

FossilOrigin-Name: b369980f0c4550a9034833caa2c7c85d6030f5ff
This commit is contained in:
drh
2016-05-13 17:22:33 +00:00
parent a0f6b124ad
commit 3b02a07e7d
3 changed files with 14 additions and 7 deletions

View File

@@ -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;
}