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
c3d029bd
Commit
c3d029bd
authored
Jan 04, 2006
by
mats@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/bkroot/mysql-5.1-new
into mysql.com:/home/bk/b15924-mysql-5.1-new
parents
d2277ec4
e6bd8be4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
8 deletions
+30
-8
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+2
-1
sql/log.cc
sql/log.cc
+11
-7
sql/sql_class.cc
sql/sql_class.cc
+17
-0
No files found.
mysql-test/t/disabled.def
View file @
c3d029bd
...
...
@@ -23,5 +23,6 @@ subselect : Bug#15706
type_time : Bug#15805
#rpl000002 : Bug#15920 Temporary tables are not binlogged in SBR
ps_7ndb : Bug#15923 Core dump in RBR mode when executing test suite
sp_trans : Bug#15924 Code dump in RBR mode when executing test suite
#
sp_trans : Bug#15924 Code dump in RBR mode when executing test suite
mysqlslap : Bug#16167
sql/log.cc
View file @
c3d029bd
...
...
@@ -241,13 +241,15 @@ static int binlog_savepoint_set(THD *thd, void *sv)
DBUG_ENTER
(
"binlog_savepoint_set"
);
binlog_trx_data
*
const
trx_data
=
(
binlog_trx_data
*
)
thd
->
ha_data
[
binlog_hton
.
slot
];
IO_CACHE
*
trans_log
=
&
trx_data
->
trans_log
;
DBUG_ASSERT
(
mysql_bin_log
.
is_open
()
&&
my_b_tell
(
trans_log
));
DBUG_ASSERT
(
mysql_bin_log
.
is_open
()
&&
my_b_tell
(
&
trx_data
->
trans_log
));
*
(
my_off_t
*
)
sv
=
my_b_tell
(
trans_log
);
*
(
my_off_t
*
)
sv
=
my_b_tell
(
&
trx_data
->
trans_log
);
/* Write it to the binary log */
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
TRUE
,
FALSE
);
DBUG_RETURN
(
mysql_bin_log
.
write
(
&
qinfo
));
int
const
error
=
thd
->
binlog_query
(
THD
::
STMT_QUERY_TYPE
,
thd
->
query
,
thd
->
query_length
,
TRUE
,
FALSE
);
DBUG_RETURN
(
error
);
}
static
int
binlog_savepoint_rollback
(
THD
*
thd
,
void
*
sv
)
...
...
@@ -265,8 +267,10 @@ static int binlog_savepoint_rollback(THD *thd, void *sv)
*/
if
(
unlikely
(
thd
->
options
&
OPTION_STATUS_NO_TRANS_UPDATE
))
{
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
TRUE
,
FALSE
);
DBUG_RETURN
(
mysql_bin_log
.
write
(
&
qinfo
));
int
const
error
=
thd
->
binlog_query
(
THD
::
STMT_QUERY_TYPE
,
thd
->
query
,
thd
->
query_length
,
TRUE
,
FALSE
);
DBUG_RETURN
(
error
);
}
reinit_io_cache
(
trans_log
,
WRITE_CACHE
,
*
(
my_off_t
*
)
sv
,
0
,
0
);
DBUG_RETURN
(
0
);
...
...
sql/sql_class.cc
View file @
c3d029bd
...
...
@@ -1976,6 +1976,23 @@ void THD::reset_sub_statement_state(Sub_statement_state *backup,
backup
->
client_capabilities
=
client_capabilities
;
backup
->
savepoints
=
transaction
.
savepoints
;
/*
For row-based replication and before executing a function/trigger,
the pending rows event has to be flushed. The function/trigger
might execute statement that require the pending event to be
flushed. A simple example:
CREATE FUNCTION foo() RETURNS INT
BEGIN
SAVEPOINT x;
RETURN 0;
END
INSERT INTO t1 VALUES (1), (foo()), (2);
*/
if
(
binlog_row_based
)
thd
->
binlog_flush_pending_rows_event
(
false
);
if
((
!
lex
->
requires_prelocking
()
||
is_update_query
(
lex
->
sql_command
))
&&
!
binlog_row_based
)
options
&=
~
OPTION_BIN_LOG
;
...
...
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