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
a1cd3516
Commit
a1cd3516
authored
Feb 21, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jonas/src/mysql-5.0
into mysql.com:/home/jonas/src/mysql-5.0-ndb sql/log.cc: Auto merged
parents
42647687
0fc34660
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
sql/handler.cc
sql/handler.cc
+5
-1
sql/handler.h
sql/handler.h
+1
-1
sql/log.cc
sql/log.cc
+4
-3
No files found.
sql/handler.cc
View file @
a1cd3516
...
...
@@ -476,6 +476,9 @@ void ha_close_connection(THD* thd)
void
trans_register_ha
(
THD
*
thd
,
bool
all
,
handlerton
*
ht_arg
)
{
THD_TRANS
*
trans
;
DBUG_ENTER
(
"trans_register_ha"
);
DBUG_PRINT
(
"enter"
,(
"%s"
,
all
?
"all"
:
"stmt"
));
if
(
all
)
{
trans
=
&
thd
->
transaction
.
all
;
...
...
@@ -496,6 +499,7 @@ void trans_register_ha(THD *thd, bool all, handlerton *ht_arg)
trans
->
no_2pc
|=
(
ht_arg
->
prepare
==
0
);
if
(
thd
->
transaction
.
xid
.
is_null
())
thd
->
transaction
.
xid
.
set
(
thd
->
query_id
);
DBUG_VOID_RETURN
;
}
/*
...
...
@@ -514,7 +518,7 @@ int ha_prepare(THD *thd)
if
(
trans
->
nht
)
{
if
(
trans
->
no_2pc
)
return
-
1
;
DBUG_RETURN
(
-
1
)
;
for
(;
*
ht
;
ht
++
)
{
int
err
;
...
...
sql/handler.h
View file @
a1cd3516
...
...
@@ -97,7 +97,7 @@
Note: the following includes binlog and closing 0.
so: innodb+bdb+ndb+binlog+0
*/
#define MAX_HA
5
#define MAX_HA
6
/*
Bits in index_ddl_flags(KEY *wanted_index)
...
...
sql/log.cc
View file @
a1cd3516
...
...
@@ -129,11 +129,12 @@ static int binlog_rollback(THD *thd, bool all)
IO_CACHE
*
trans_log
=
(
IO_CACHE
*
)
thd
->
ha_data
[
binlog_hton
.
slot
];
DBUG_ENTER
(
"binlog_rollback"
);
/*
first two conditions here are guaranteed - see trans_register_ha()
call below. The third one
must be true. If it is not, we're registering
First assert is guaranteed - see trans_register_ha() call below.
The second
must be true. If it is not, we're registering
unnecessary, doing extra work. The cause should be found and eliminated
*/
DBUG_ASSERT
(
all
&&
mysql_bin_log
.
is_open
()
&&
my_b_tell
(
trans_log
));
DBUG_ASSERT
(
all
||
!
(
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)));
DBUG_ASSERT
(
mysql_bin_log
.
is_open
()
&&
my_b_tell
(
trans_log
));
/*
Update the binary log with a BEGIN/ROLLBACK block if we have
cached some queries and we updated some non-transactional
...
...
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