Commit bfb0a4dd authored by Rich Prohaska's avatar Rich Prohaska

#230 disable the tokudb bulk loader in the tokudb locks schema tests

parent 493f9fd0
...@@ -9,6 +9,7 @@ locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right ...@@ -9,6 +9,7 @@ locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right
select * from information_schema.tokudb_lock_waits; select * from information_schema.tokudb_lock_waits;
requesting_trx_id blocking_trx_id lock_waits_dname lock_waits_key_left lock_waits_key_right lock_waits_start_time requesting_trx_id blocking_trx_id lock_waits_dname lock_waits_key_left lock_waits_key_right lock_waits_start_time
set autocommit=0; set autocommit=0;
set tokudb_prelock_empty=OFF;
insert into t values (1); insert into t values (1);
set autocommit=0; set autocommit=0;
insert into t values (1); insert into t values (1);
...@@ -38,6 +39,7 @@ locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right ...@@ -38,6 +39,7 @@ locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right
select * from information_schema.tokudb_lock_waits; select * from information_schema.tokudb_lock_waits;
requesting_trx_id blocking_trx_id lock_waits_dname lock_waits_key_left lock_waits_key_right lock_waits_start_time requesting_trx_id blocking_trx_id lock_waits_dname lock_waits_key_left lock_waits_key_right lock_waits_start_time
set autocommit=0; set autocommit=0;
set tokudb_prelock_empty=OFF;
replace into t values (1); replace into t values (1);
set autocommit=0; set autocommit=0;
replace into t values (1); replace into t values (1);
......
...@@ -9,6 +9,7 @@ locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right ...@@ -9,6 +9,7 @@ locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right
select * from information_schema.tokudb_lock_waits; select * from information_schema.tokudb_lock_waits;
requesting_trx_id blocking_trx_id lock_waits_dname lock_waits_key_left lock_waits_key_right lock_waits_start_time requesting_trx_id blocking_trx_id lock_waits_dname lock_waits_key_left lock_waits_key_right lock_waits_start_time
set autocommit=0; set autocommit=0;
set tokudb_prelock_empty=OFF;
insert into t values (1); insert into t values (1);
set autocommit=0; set autocommit=0;
insert into t values (1); insert into t values (1);
......
...@@ -12,7 +12,7 @@ set autocommit=0; ...@@ -12,7 +12,7 @@ set autocommit=0;
insert into t values (2); insert into t values (2);
insert into t values (4); insert into t values (4);
insert into t values (6); insert into t values (6);
select * from information_schema.tokudb_locks order by locks_trx_id; select * from information_schema.tokudb_locks order by locks_trx_id,locks_key_left;
locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right
TRX_ID MYSQL_ID ./test/t-main 0001000000 0001000000 TRX_ID MYSQL_ID ./test/t-main 0001000000 0001000000
TRX_ID MYSQL_ID ./test/t-main 0003000000 0003000000 TRX_ID MYSQL_ID ./test/t-main 0003000000 0003000000
......
...@@ -6,6 +6,7 @@ set autocommit=0; ...@@ -6,6 +6,7 @@ set autocommit=0;
select * from information_schema.tokudb_locks; select * from information_schema.tokudb_locks;
locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right locks_trx_id locks_mysql_thread_id locks_dname locks_key_left locks_key_right
set autocommit=0; set autocommit=0;
set tokudb_prelock_empty=OFF;
insert into t values (1); insert into t values (1);
set autocommit=0; set autocommit=0;
insert into t values (1); insert into t values (1);
......
...@@ -19,6 +19,7 @@ select * from information_schema.tokudb_lock_waits; ...@@ -19,6 +19,7 @@ select * from information_schema.tokudb_lock_waits;
connect (conn_a,localhost,root,,); connect (conn_a,localhost,root,,);
set autocommit=0; set autocommit=0;
set tokudb_prelock_empty=OFF; # disable the bulk loader
insert into t values (1); insert into t values (1);
connect (conn_b,localhost,root,,); connect (conn_b,localhost,root,,);
...@@ -68,6 +69,7 @@ select * from information_schema.tokudb_lock_waits; ...@@ -68,6 +69,7 @@ select * from information_schema.tokudb_lock_waits;
connect (conn_a,localhost,root,,); connect (conn_a,localhost,root,,);
set autocommit=0; set autocommit=0;
set tokudb_prelock_empty=OFF; # disable the bulk loader
replace into t values (1); replace into t values (1);
connect (conn_b,localhost,root,,); connect (conn_b,localhost,root,,);
......
...@@ -16,6 +16,7 @@ select * from information_schema.tokudb_lock_waits; ...@@ -16,6 +16,7 @@ select * from information_schema.tokudb_lock_waits;
connect (conn_a,localhost,root,,); connect (conn_a,localhost,root,,);
set autocommit=0; set autocommit=0;
set tokudb_prelock_empty=OFF;
insert into t values (1); insert into t values (1);
connect (conn_b,localhost,root,,); connect (conn_b,localhost,root,,);
......
...@@ -29,7 +29,7 @@ insert into t values (6); ...@@ -29,7 +29,7 @@ insert into t values (6);
# should find 3 locks for 2 transactions # should find 3 locks for 2 transactions
connection default; connection default;
replace_column 1 TRX_ID 2 MYSQL_ID; replace_column 1 TRX_ID 2 MYSQL_ID;
eval select * from information_schema.tokudb_locks order by locks_trx_id; eval select * from information_schema.tokudb_locks order by locks_trx_id,locks_key_left;
connection conn_a; connection conn_a;
commit; commit;
......
...@@ -14,20 +14,17 @@ let $default_id=`select connection_id()`; ...@@ -14,20 +14,17 @@ let $default_id=`select connection_id()`;
# should be empty # should be empty
select * from information_schema.tokudb_locks; select * from information_schema.tokudb_locks;
connect (conn_a,localhost,root,,); connect (conn_a,localhost,root,,);
set autocommit=0; set autocommit=0;
let $a_id=`select connection_id()`; set tokudb_prelock_empty=OFF; # disable bulk loader
insert into t values (1); insert into t values (1);
connect (conn_b,localhost,root,,); connect (conn_b,localhost,root,,);
set autocommit=0; set autocommit=0;
let $b_id=`select connection_id()`;
send insert into t values (1); send insert into t values (1);
# should find the presence of a lock on 2nd transaction # should find the presence of a lock on 2nd transaction
connection default; connection default;
let $wait_condition= select count(*)=1 from information_schema.processlist where info='insert into t values (1)' and state='update'; let $wait_condition= select count(*)=1 from information_schema.processlist where info='insert into t values (1)' and state='update';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment