]> git.ipfire.org Git - thirdparty/sqlite.git/commit
In lsm (not SQLite), avoid opening the *-shm file before the database file is
authordan <dan@noemail.net>
Mon, 23 Oct 2017 11:48:00 +0000 (11:48 +0000)
committerdan <dan@noemail.net>
Mon, 23 Oct 2017 11:48:00 +0000 (11:48 +0000)
commitb5ef728db66284c47861ea66a7e906a9a4b33cb4
tree4c60a62adc6dea98dbd8b61ce3c8d95528ea89f1
parentf970372698fc57380c8756b3809ed13ca246dcec
In lsm (not SQLite), avoid opening the *-shm file before the database file is
locked. Otherwise, there is a race condition whereby a connection in another
process process may unlink() it while it is still in use.

FossilOrigin-Name: c8b8b9b573665c2b4d278bb679a48ac407374b8d860f0c3f4d50a303043464ad
ext/lsm1/lsm_shared.c
manifest
manifest.uuid