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

Modify the journal format to be more robust against garbage that might appear

in the file after a power failure.  The changes are mostly working but more
testing is still required.  This check-in is to checkpoint the changes so far. (CVS 861)

FossilOrigin-Name: 8ec5632536eea31197a3b1fd6abc57881a0cf1d7
This commit is contained in:
drh
2003-02-11 14:55:40 +00:00
parent 324ccefeb5
commit 968af52acf
8 changed files with 239 additions and 92 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script is database locks.
#
# $Id: trans.test,v 1.16 2002/08/18 20:28:07 drh Exp $
# $Id: trans.test,v 1.17 2003/02/11 14:55:42 drh Exp $
set testdir [file dirname $argv0]
@ -857,7 +857,7 @@ if {[info exists ISQUICK]} {
for {set i 2} {$i<=$limit} {incr i} {
set ::sig [signature]
set cnt [lindex $::sig 0]
set ::pager_old_format [expr {($i%4)==0}]
set ::journal_format [expr {($i%3)+1}]
do_test trans-9.$i.1-$cnt {
execsql {
BEGIN;