mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
5.2 -> 5.3
This commit is contained in:
@@ -1037,6 +1037,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;
|
||||
/*
|
||||
@@ -1048,6 +1050,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