mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
5.5 merge
This commit is contained in:
@@ -966,6 +966,7 @@ impossible position";
|
||||
|
||||
event_type=
|
||||
(Log_event_type)((uchar)(*packet)[LOG_EVENT_OFFSET+ev_offset]);
|
||||
#ifdef ENABLED_DEBUG_SYNC
|
||||
DBUG_EXECUTE_IF("dump_thread_wait_before_send_xid",
|
||||
{
|
||||
if (event_type == XID_EVENT)
|
||||
@@ -984,6 +985,7 @@ impossible position";
|
||||
STRING_WITH_LEN(act2)));
|
||||
}
|
||||
});
|
||||
#endif
|
||||
if (event_type == FORMAT_DESCRIPTION_EVENT)
|
||||
{
|
||||
current_checksum_alg= get_checksum_alg(packet->ptr() + ev_offset,
|
||||
@@ -1348,6 +1350,8 @@ int start_slave(THD* thd , Master_info* mi, bool net_report)
|
||||
|
||||
if (thd->lex->mi.pos)
|
||||
{
|
||||
if (thd->lex->mi.relay_log_pos)
|
||||
slave_errno=ER_BAD_SLAVE_UNTIL_COND;
|
||||
mi->rli.until_condition= Relay_log_info::UNTIL_MASTER_POS;
|
||||
mi->rli.until_log_pos= thd->lex->mi.pos;
|
||||
/*
|
||||
@@ -1359,6 +1363,8 @@ int start_slave(THD* thd , Master_info* mi, bool net_report)
|
||||
}
|
||||
else if (thd->lex->mi.relay_log_pos)
|
||||
{
|
||||
if (thd->lex->mi.pos)
|
||||
slave_errno=ER_BAD_SLAVE_UNTIL_COND;
|
||||
mi->rli.until_condition= Relay_log_info::UNTIL_RELAY_POS;
|
||||
mi->rli.until_log_pos= thd->lex->mi.relay_log_pos;
|
||||
strmake(mi->rli.until_log_name, thd->lex->mi.relay_log_name,
|
||||
|
Reference in New Issue
Block a user