blob: 7e9d91f9868a645318b474dde6dc88bbdc0bb3bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--source include/have_tokudb.inc
#
# Record inconsistency.
#
#
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings
DROP TABLE IF EXISTS foo;
--enable_warnings
#do some sanity checks that queries with disable_prefetching ON work
create table foo (a int, b int, primary key (a))engine=TokuDB;
insert into foo values (1,10),(2,20),(3,30),(4,40),(5,50);
set session tokudb_disable_prefetching=ON;
select * from foo;
select * from foo where a=1;
select * from foo where a>1;
begin;
select * from foo where a > 1 for update;
commit;
set session transaction isolation level serializable;
select * from foo;
select * from foo where a=1;
select * from foo where a>1;
begin;
select * from foo where a > 1 for update;
commit;
# Final cleanup.
DROP TABLE foo;
|