Commit 818d68ab authored by Mattias Jonsson's avatar Mattias Jonsson

Fix for mysql-5.1-performance-version, transaction information

removed from SHOW ENGINE InnoDB STATUS
parent 2f275860
...@@ -11,13 +11,7 @@ SET @old_tx_isolation := @@session.tx_isolation; ...@@ -11,13 +11,7 @@ SET @old_tx_isolation := @@session.tx_isolation;
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
SET autocommit = 0; SET autocommit = 0;
UPDATE t1 SET DATA = data*2 WHERE id = 3; UPDATE t1 SET DATA = data*2 WHERE id = 3;
SHOW ENGINE InnoDB STATUS;
Type Name Status
InnoDB 2 lock struct(s) 1 row lock(s)
UPDATE t1 SET data = data*2 WHERE data = 2; UPDATE t1 SET data = data*2 WHERE data = 2;
SHOW ENGINE InnoDB STATUS;
Type Name Status
InnoDB 6 lock struct(s) 2 row lock(s)
SET @@session.tx_isolation = @old_tx_isolation; SET @@session.tx_isolation = @old_tx_isolation;
DROP TABLE t1; DROP TABLE t1;
# Bug#37721, test of ORDER BY on PK and WHERE on INDEX # Bug#37721, test of ORDER BY on PK and WHERE on INDEX
......
...@@ -25,17 +25,21 @@ SET autocommit = 0; ...@@ -25,17 +25,21 @@ SET autocommit = 0;
UPDATE t1 SET DATA = data*2 WHERE id = 3; UPDATE t1 SET DATA = data*2 WHERE id = 3;
# SHOW ENGINE InnoDB STATUS does not show transaction info in
# PERFORMANCE-VERSION
# grouping/referencing in replace_regex is very slow on long strings, # grouping/referencing in replace_regex is very slow on long strings,
# removing all before/after the interesting row before grouping/referencing # removing all before/after the interesting row before grouping/referencing
--replace_regex /.*---TRANSACTION [0-9]+ [0-9]+, .*, OS thread id [0-9]+// /MySQL thread id [0-9]+, query id [0-9]+ .*// /.*([0-9]+ lock struct\(s\)), heap size [0-9]+, ([0-9]+ row lock\(s\)).*/\1 \2/ #--replace_regex /.*---TRANSACTION [0-9]+ [0-9]+, .*, OS thread id [0-9]+// /MySQL thread id [0-9]+, query id [0-9]+ .*// /.*([0-9]+) lock struct\(s\), heap size [0-9]+, ([0-9]+) row lock\(s\).*/\1 lock struct(s) \2 row lock(s)/
SHOW ENGINE InnoDB STATUS; #SHOW ENGINE InnoDB STATUS;
UPDATE t1 SET data = data*2 WHERE data = 2; UPDATE t1 SET data = data*2 WHERE data = 2;
# SHOW ENGINE InnoDB STATUS does not show transaction info in
# PERFORMANCE-VERSION
# grouping/referencing in replace_regex is very slow on long strings, # grouping/referencing in replace_regex is very slow on long strings,
# removing all before/after the interesting row before grouping/referencing # removing all before/after the interesting row before grouping/referencing
--replace_regex /.*---TRANSACTION [0-9]+ [0-9]+, .*, OS thread id [0-9]+// /MySQL thread id [0-9]+, query id [0-9]+ .*// /.*([0-9]+ lock struct\(s\)), heap size [0-9]+, ([0-9]+ row lock\(s\)).*/\1 \2/ #--replace_regex /.*---TRANSACTION [0-9]+ [0-9]+, .*, OS thread id [0-9]+// /MySQL thread id [0-9]+, query id [0-9]+ .*// /.*([0-9]+ lock struct\(s\)), heap size [0-9]+, ([0-9]+ row lock\(s\)).*/\1 \2/
SHOW ENGINE InnoDB STATUS; #SHOW ENGINE InnoDB STATUS;
SET @@session.tx_isolation = @old_tx_isolation; SET @@session.tx_isolation = @old_tx_isolation;
......
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