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

Adjust the shared-memory locking range to account for the new version number

values in the wal-index header.

FossilOrigin-Name: a6dc0df304876b51cef5402b0e21330f10aabccf
This commit is contained in:
drh
2010-06-23 17:58:38 +00:00
parent 10f5a50e57
commit bd9676c19e
4 changed files with 21 additions and 11 deletions

View File

@@ -3175,7 +3175,7 @@ struct unixShm {
/*
** Constants used for locking
*/
#define UNIX_SHM_BASE ((18+SQLITE_SHM_NLOCK)*4) /* first lock byte */
#define UNIX_SHM_BASE ((22+SQLITE_SHM_NLOCK)*4) /* first lock byte */
#define UNIX_SHM_DMS (UNIX_SHM_BASE+SQLITE_SHM_NLOCK) /* deadman switch */
/*