2013-04-08 18:41:34 +04:00
|
|
|
/*
|
|
|
|
** Configure five tasks in different ways, then run tests.
|
|
|
|
*/
|
|
|
|
PRAGMA page_size=512;
|
|
|
|
--task 1
|
2013-04-15 21:03:42 +04:00
|
|
|
PRAGMA mmap_size=0;
|
2013-04-08 18:41:34 +04:00
|
|
|
--end
|
|
|
|
--task 2
|
2013-04-15 21:03:42 +04:00
|
|
|
PRAGMA mmap_size=28672;
|
2013-04-08 18:41:34 +04:00
|
|
|
--end
|
|
|
|
--task 3
|
2013-04-15 21:03:42 +04:00
|
|
|
PRAGMA mmap_size=8192;
|
2013-04-08 18:41:34 +04:00
|
|
|
--end
|
|
|
|
--task 4
|
2013-04-15 21:03:42 +04:00
|
|
|
PRAGMA mmap_size=65536;
|
|
|
|
--end
|
|
|
|
--task 5
|
|
|
|
PRAGMA mmap_size=268435456;
|
2013-04-08 18:41:34 +04:00
|
|
|
--end
|
|
|
|
--source multiwrite01.test
|
2013-04-08 22:58:00 +04:00
|
|
|
--source crash02.subtest
|
2013-04-08 18:41:34 +04:00
|
|
|
PRAGMA page_size=1024;
|
|
|
|
VACUUM;
|
|
|
|
CREATE TABLE pgsz(taskid, sz INTEGER);
|
|
|
|
--task 1
|
|
|
|
INSERT INTO pgsz VALUES(1, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 2
|
|
|
|
INSERT INTO pgsz VALUES(2, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 3
|
|
|
|
INSERT INTO pgsz VALUES(3, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 4
|
|
|
|
INSERT INTO pgsz VALUES(4, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 5
|
|
|
|
INSERT INTO pgsz VALUES(5, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--source multiwrite01.test
|
2013-04-08 22:58:00 +04:00
|
|
|
--source crash02.subtest
|
2013-04-08 18:41:34 +04:00
|
|
|
--wait all
|
|
|
|
SELECT sz FROM pgsz;
|
|
|
|
--match 1024 1024 1024 1024 1024
|
|
|
|
PRAGMA page_size=2048;
|
|
|
|
VACUUM;
|
|
|
|
DELETE FROM pgsz;
|
|
|
|
--task 1
|
|
|
|
INSERT INTO pgsz VALUES(1, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 2
|
|
|
|
INSERT INTO pgsz VALUES(2, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 3
|
|
|
|
INSERT INTO pgsz VALUES(3, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 4
|
|
|
|
INSERT INTO pgsz VALUES(4, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 5
|
|
|
|
INSERT INTO pgsz VALUES(5, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--source multiwrite01.test
|
2013-04-08 22:58:00 +04:00
|
|
|
--source crash02.subtest
|
2013-04-08 18:41:34 +04:00
|
|
|
--wait all
|
|
|
|
SELECT sz FROM pgsz;
|
|
|
|
--match 2048 2048 2048 2048 2048
|
|
|
|
PRAGMA page_size=8192;
|
|
|
|
VACUUM;
|
|
|
|
DELETE FROM pgsz;
|
|
|
|
--task 1
|
|
|
|
INSERT INTO pgsz VALUES(1, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 2
|
|
|
|
INSERT INTO pgsz VALUES(2, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 3
|
|
|
|
INSERT INTO pgsz VALUES(3, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 4
|
|
|
|
INSERT INTO pgsz VALUES(4, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 5
|
|
|
|
INSERT INTO pgsz VALUES(5, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--source multiwrite01.test
|
2013-04-08 22:58:00 +04:00
|
|
|
--source crash02.subtest
|
2013-04-08 18:41:34 +04:00
|
|
|
--wait all
|
|
|
|
SELECT sz FROM pgsz;
|
|
|
|
--match 8192 8192 8192 8192 8192
|
|
|
|
PRAGMA page_size=16384;
|
|
|
|
VACUUM;
|
|
|
|
DELETE FROM pgsz;
|
|
|
|
--task 1
|
|
|
|
INSERT INTO pgsz VALUES(1, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 2
|
|
|
|
INSERT INTO pgsz VALUES(2, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 3
|
|
|
|
INSERT INTO pgsz VALUES(3, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 4
|
|
|
|
INSERT INTO pgsz VALUES(4, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--task 5
|
|
|
|
INSERT INTO pgsz VALUES(5, eval('PRAGMA page_size'));
|
|
|
|
--end
|
|
|
|
--source multiwrite01.test
|
2013-04-08 22:58:00 +04:00
|
|
|
--source crash02.subtest
|
2013-04-08 18:41:34 +04:00
|
|
|
--wait all
|
|
|
|
SELECT sz FROM pgsz;
|
|
|
|
--match 16384 16384 16384 16384 16384
|
2013-04-08 21:57:26 +04:00
|
|
|
PRAGMA auto_vacuum=FULL;
|
|
|
|
VACUUM;
|
|
|
|
--source multiwrite01.test
|
2013-04-08 22:58:00 +04:00
|
|
|
--source crash02.subtest
|
2013-04-08 21:57:26 +04:00
|
|
|
--wait all
|
|
|
|
PRAGMA auto_vacuum=FULL;
|
|
|
|
PRAGMA page_size=512;
|
|
|
|
VACUUM;
|
|
|
|
--source multiwrite01.test
|
2013-04-08 22:58:00 +04:00
|
|
|
--source crash02.subtest
|