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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8c88bb4e
Commit
8c88bb4e
authored
Oct 12, 2006
by
kaa@polly.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge polly.local:/tmp/maint/bug22728/my41-bug22728
into polly.local:/home/kaa/src/maint/m41-maint--07OGk
parents
add9cffb
456fe01d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+10
-0
mysql-test/t/innodb_mysql.test
mysql-test/t/innodb_mysql.test
+16
-0
sql/handler.cc
sql/handler.cc
+1
-1
No files found.
mysql-test/r/innodb_mysql.result
View file @
8c88bb4e
...
...
@@ -104,3 +104,13 @@ SELECT `id1` FROM `t1` WHERE `id1` NOT IN (SELECT `id1` FROM `t2` WHERE `id2` =
id1
2
DROP TABLE t1, t2;
flush status;
create table t1 (c1 int) engine=innodb;
handler t1 open;
handler t1 read first;
c1
show /*!50002 GLOBAL */ status like 'Handler_rollback';
Variable_name Value
Handler_rollback 0
drop table t1;
End of 4.1 tests
mysql-test/t/innodb_mysql.test
View file @
8c88bb4e
...
...
@@ -117,3 +117,19 @@ INSERT INTO `t2`(`id1`,`id2`,`id3`,`id4`) VALUES
SELECT
`id1`
FROM
`t1`
WHERE
`id1`
NOT
IN
(
SELECT
`id1`
FROM
`t2`
WHERE
`id2`
=
1
AND
`id3`
=
2
);
DROP
TABLE
t1
,
t2
;
# Bug #22728 - Handler_rollback value is growing
#
flush
status
;
create
table
t1
(
c1
int
)
engine
=
innodb
;
connect
(
con1
,
localhost
,
root
,,);
connect
(
con2
,
localhost
,
root
,,);
connection
con2
;
handler
t1
open
;
handler
t1
read
first
;
disconnect
con2
;
connection
con1
;
show
/*!50002 GLOBAL */
status
like
'Handler_rollback'
;
connection
default
;
drop
table
t1
;
disconnect
con1
;
--
echo
End
of
4.1
tests
sql/handler.cc
View file @
8c88bb4e
...
...
@@ -648,7 +648,7 @@ int ha_rollback_trans(THD *thd, THD_TRANS *trans)
}
#endif
#ifdef HAVE_INNOBASE_DB
if
(
t
rans
->
innobase_tid
)
if
(
t
hd
->
transaction
.
all
.
innodb_active_trans
)
{
if
((
error
=
innobase_rollback
(
thd
,
trans
->
innobase_tid
)))
{
...
...
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