1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

If, after obtaining a SHARED lock, there exists a *-wal file in the file-system, use WAL mode. This is necessary to recover from a crash that damages the first page of the database file.

FossilOrigin-Name: 33cabf271b8f4dda508a610bf59964273fe2cb84
This commit is contained in:
dan
2010-04-21 11:43:38 +00:00
parent 28e5386f79
commit a470aeb4ac
6 changed files with 138 additions and 59 deletions

View File

@ -685,7 +685,6 @@ do_test wal-12.4 {
} {B 1}
db2 close
file copy -force test.db-wal A
do_test wal-12.5 {
execsql {
PRAGMA checkpoint;
@ -697,7 +696,6 @@ do_test wal-12.5 {
SELECT * FROM t2;
}
} {B 2}
file copy -force test.db-wal B
do_test wal-12.4 {
file copy -force test.db test2.db