Add "PRAGMA synchronous=EXTRA" which syncs the directory containing the

rollback journal when the rollback journal is deleted in order to commit a 
transaction in DELETE mode.

FossilOrigin-Name: af92401826f5cf49e62c278f344ab75252a18da2
This commit is contained in:
drh
2016-02-03 19:20:15 +00:00
parent 1b32554b80
commit 6841b1cb3d
7 changed files with 68 additions and 38 deletions
+17 -3
View File
@@ -186,7 +186,15 @@ do_test pragma-1.10 {
PRAGMA synchronous;
}
} {123 123 1}
do_test pragma-1.11 {
do_test pragma-1.11.1 {
execsql {
PRAGMA synchronous=EXTRA;
PRAGMA cache_size;
PRAGMA default_cache_size;
PRAGMA synchronous;
}
} {123 123 3}
do_test pragma-1.11.2 {
execsql {
PRAGMA synchronous=FULL;
PRAGMA cache_size;
@@ -224,14 +232,20 @@ do_test pragma-1.14.1 {
PRAGMA synchronous=4;
PRAGMA synchronous;
}
} {0}
} {4}
do_test pragma-1.14.2 {
execsql {
PRAGMA synchronous=3;
PRAGMA synchronous;
}
} {0}
} {3}
do_test pragma-1.14.3 {
execsql {
PRAGMA synchronous=8;
PRAGMA synchronous;
}
} {0}
do_test pragma-1.14.4 {
execsql {
PRAGMA synchronous=10;
PRAGMA synchronous;