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

Update header comments in wal.c to correctly describe the WAL file format.

Update the locking region offsets in os_unix.c and os_win.c and add assert()
statement to verify that the locking region offsets are correct.

FossilOrigin-Name: 40030c0739f821ea8ee188c28c579507f10448bc
This commit is contained in:
drh
2010-05-25 13:40:03 +00:00
parent ca6b5baba4
commit 1b78eaf0ba
5 changed files with 42 additions and 16 deletions

View File

@@ -3186,7 +3186,7 @@ struct unixShm {
/*
** Constants used for locking
*/
#define UNIX_SHM_BASE 32 /* Byte offset of the first lock byte */
#define UNIX_SHM_BASE 80 /* Byte offset of the first lock byte */
#define UNIX_SHM_DMS 0x01 /* Mask for Dead-Man-Switch lock */
#define UNIX_SHM_A 0x10 /* Mask for region locks... */
#define UNIX_SHM_B 0x20