Commit 3d54e732 authored by unknown's avatar unknown

Merge mysql.com:/home/ram/work/mysql-5.1-maint

into  mysql.com:/home/ram/work/b31285/b31285.5.1

parents 531193dc 620269fe
...@@ -8,6 +8,8 @@ VARIABLE_NAME VARIABLE_VALUE ...@@ -8,6 +8,8 @@ VARIABLE_NAME VARIABLE_VALUE
TABLE_LOCKS_IMMEDIATE 2 TABLE_LOCKS_IMMEDIATE 2
TABLE_LOCKS_WAITED 0 TABLE_LOCKS_WAITED 0
SET SQL_LOG_BIN=0; SET SQL_LOG_BIN=0;
set @old_general_log = @@global.general_log;
set global general_log = 'OFF';
drop table if exists t1; drop table if exists t1;
create table t1(n int) engine=myisam; create table t1(n int) engine=myisam;
insert into t1 values(1); insert into t1 values(1);
...@@ -20,6 +22,7 @@ show status like 'Table_locks_waited'; ...@@ -20,6 +22,7 @@ show status like 'Table_locks_waited';
Variable_name Value Variable_name Value
Table_locks_waited 1 Table_locks_waited 1
drop table t1; drop table t1;
set global general_log = @old_general_log;
select 1; select 1;
1 1
1 1
......
...@@ -21,6 +21,8 @@ select * from information_schema.session_status where variable_name like 'Table_ ...@@ -21,6 +21,8 @@ select * from information_schema.session_status where variable_name like 'Table_
connection con1; connection con1;
# ++Immediate = 3 # ++Immediate = 3
SET SQL_LOG_BIN=0; SET SQL_LOG_BIN=0;
set @old_general_log = @@global.general_log;
set global general_log = 'OFF';
--disable_warnings --disable_warnings
# ++Immediate = 4 # ++Immediate = 4
drop table if exists t1; drop table if exists t1;
...@@ -60,6 +62,7 @@ reap; ...@@ -60,6 +62,7 @@ reap;
# ++Immediate = 16 + $wait_condition_reps # ++Immediate = 16 + $wait_condition_reps
show status like 'Table_locks_waited'; show status like 'Table_locks_waited';
drop table t1; drop table t1;
set global general_log = @old_general_log;
disconnect con2; disconnect con2;
disconnect con1; disconnect con1;
......
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