mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Instead of transitioning to RECOVER state from CHECKPOINT when a recovery is required, perform the recovery while holding the CHECKPOINT lock.
FossilOrigin-Name: bb0b6021e721c2e4f1533ab18381604c6b7b31d5
This commit is contained in:
@ -338,8 +338,7 @@ tvfs delete
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Test that if a database connection is forced to run recovery before it
|
||||
# can perform a checkpoint, it transistions from RECOVERY->CHECKPOINT
|
||||
# before doing so.
|
||||
# can perform a checkpoint, it does not transition into RECOVER state.
|
||||
#
|
||||
do_test wal2-5.1 {
|
||||
proc tvfs_cb {method args} {
|
||||
@ -362,8 +361,9 @@ do_test wal2-5.1 {
|
||||
set ::locks [list]
|
||||
execsql { PRAGMA wal_checkpoint }
|
||||
set ::locks
|
||||
} {CHECKPOINT RECOVER CHECKPOINT UNLOCK}
|
||||
|
||||
} {CHECKPOINT UNLOCK}
|
||||
|
||||
db close
|
||||
tvfs delete
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user