2 ** This script is called from crash01.test and config02.test and perhaps other
3 ** script. After the database file has been set up, make a big rollback
4 ** journal in client 1, then crash client 1.
5 ** Then in the other clients, do an integrity check.
7 --task 1 leave-hot-journal
12 UPDATE t1 SET b=randomblob(20000);
13 UPDATE t2 SET b=randomblob(20000);
14 UPDATE t3 SET b=randomblob(20000);
15 UPDATE t4 SET b=randomblob(20000);
16 UPDATE t5 SET b=randomblob(20000);
22 --print Task one crashing an incomplete transaction
25 --task 2 integrity_check-2
26 SELECT count(*) FROM t1;
29 PRAGMA integrity_check(10);
32 --task 3 integrity_check-3
33 SELECT count(*) FROM t1;
36 PRAGMA integrity_check(10);
39 --task 4 integrity_check-4
40 SELECT count(*) FROM t1;
43 PRAGMA integrity_check(10);
46 --task 5 integrity_check-5
47 SELECT count(*) FROM t1;
50 PRAGMA integrity_check(10);