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:
@ -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
|
||||
|
Reference in New Issue
Block a user