Disable F_FULLSYNC if the sychronous pragma is not set to FULL. (CVS 2372)

FossilOrigin-Name: 58b8733b96165126ee8514f2ce0f88d249792847
This commit is contained in:
drh
2005-03-10 14:11:12 +00:00
parent cca76c2f7e
commit b851b2c938
8 changed files with 88 additions and 25 deletions
+10 -2
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.23 2004/06/19 00:16:31 drh Exp $
# $Id: trans.test,v 1.24 2005/03/10 14:11:13 drh Exp $
set testdir [file dirname $argv0]
@@ -855,6 +855,8 @@ for {set i 2} {$i<=$limit} {incr i} {
} else {
execsql {PRAGMA synchronous=NORMAL}
}
set sqlite_sync_count 0
set sqlite_fullsync_count 0
do_test trans-9.$i.1-$cnt {
execsql {
BEGIN;
@@ -877,11 +879,17 @@ for {set i 2} {$i<=$limit} {incr i} {
signature
} $sig
if {$i<$limit} {
do_test trans-9.$i.9-$cnt {
do_test trans-9.$i.3-$cnt {
execsql {
INSERT INTO t3 SELECT randstr(10,400) FROM t3 WHERE random()%10==0;
}
} {}
do_test trans-9.$i.4-$cnt {
expr {$sqlite_sync_count>0}
} 1
do_test trans-9.$i.5-$cnt {
expr {$sqlite_fullsync_count>0}
} [expr {$i%2==0}]
}
set ::pager_old_format 0
}