Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
180a360c
Commit
180a360c
authored
Dec 15, 2008
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for mysql-5.1-performance-version, transaction information
removed from SHOW ENGINE InnoDB STATUS
parent
9cf02139
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
mysql-test/r/partition_innodb.result
mysql-test/r/partition_innodb.result
+0
-6
mysql-test/t/partition_innodb.test
mysql-test/t/partition_innodb.test
+8
-4
No files found.
mysql-test/r/partition_innodb.result
View file @
180a360c
...
...
@@ -11,13 +11,7 @@ SET @old_tx_isolation := @@session.tx_isolation;
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
SET autocommit = 0;
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;
SHOW ENGINE InnoDB STATUS;
Type Name Status
InnoDB 6 lock struct(s) 2 row lock(s)
SET @@session.tx_isolation = @old_tx_isolation;
DROP TABLE t1;
# Bug#37721, test of ORDER BY on PK and WHERE on INDEX
...
...
mysql-test/t/partition_innodb.test
View file @
180a360c
...
...
@@ -25,17 +25,21 @@ SET autocommit = 0;
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,
# 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
/
SHOW
ENGINE
InnoDB
STATUS
;
#--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;
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,
# 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
/
SHOW
ENGINE
InnoDB
STATUS
;
#
--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;
SET
@@
session
.
tx_isolation
=
@
old_tx_isolation
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment