mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Merge tag 'mariadb-10.0.30' into bb-sachin-10.0-galera-merge
Signed-off-by: Sachin Setiya <sachin.setiya@mariadb.com>
This commit is contained in:
commit
f66395f7c0
487 changed files with 14212 additions and 7437 deletions
|
|
@ -6273,9 +6273,11 @@ bool Rotate_log_event::write(IO_CACHE* file)
|
|||
|
||||
@retval
|
||||
0 ok
|
||||
1 error
|
||||
*/
|
||||
int Rotate_log_event::do_update_pos(rpl_group_info *rgi)
|
||||
{
|
||||
int error= 0;
|
||||
Relay_log_info *rli= rgi->rli;
|
||||
DBUG_ENTER("Rotate_log_event::do_update_pos");
|
||||
#ifndef DBUG_OFF
|
||||
|
|
@ -6327,7 +6329,7 @@ int Rotate_log_event::do_update_pos(rpl_group_info *rgi)
|
|||
(ulong) rli->group_master_log_pos));
|
||||
mysql_mutex_unlock(&rli->data_lock);
|
||||
rpl_global_gtid_slave_state->record_and_update_gtid(thd, rgi);
|
||||
flush_relay_log_info(rli);
|
||||
error= flush_relay_log_info(rli);
|
||||
|
||||
/*
|
||||
Reset thd->variables.option_bits and sql_mode etc, because this could
|
||||
|
|
@ -6345,8 +6347,7 @@ int Rotate_log_event::do_update_pos(rpl_group_info *rgi)
|
|||
else
|
||||
rgi->inc_event_relay_log_pos();
|
||||
|
||||
|
||||
DBUG_RETURN(0);
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -6944,6 +6945,7 @@ Gtid_list_log_event::do_apply_event(rpl_group_info *rgi)
|
|||
rli->abort_slave= true;
|
||||
rli->stop_for_until= true;
|
||||
}
|
||||
free_root(thd->mem_root, MYF(MY_KEEP_PREALLOC));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -8220,6 +8222,7 @@ void Stop_log_event::print(FILE* file, PRINT_EVENT_INFO* print_event_info)
|
|||
|
||||
int Stop_log_event::do_update_pos(rpl_group_info *rgi)
|
||||
{
|
||||
int error= 0;
|
||||
Relay_log_info *rli= rgi->rli;
|
||||
DBUG_ENTER("Stop_log_event::do_update_pos");
|
||||
/*
|
||||
|
|
@ -8235,9 +8238,10 @@ int Stop_log_event::do_update_pos(rpl_group_info *rgi)
|
|||
{
|
||||
rpl_global_gtid_slave_state->record_and_update_gtid(thd, rgi);
|
||||
rli->inc_group_relay_log_pos(0, rgi);
|
||||
flush_relay_log_info(rli);
|
||||
if (flush_relay_log_info(rli))
|
||||
error= 1;
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
||||
#endif /* !MYSQL_CLIENT */
|
||||
|
|
@ -10273,8 +10277,8 @@ int
|
|||
Rows_log_event::do_update_pos(rpl_group_info *rgi)
|
||||
{
|
||||
Relay_log_info *rli= rgi->rli;
|
||||
DBUG_ENTER("Rows_log_event::do_update_pos");
|
||||
int error= 0;
|
||||
DBUG_ENTER("Rows_log_event::do_update_pos");
|
||||
|
||||
DBUG_PRINT("info", ("flags: %s",
|
||||
get_flags(STMT_END_F) ? "STMT_END_F " : ""));
|
||||
|
|
@ -10286,7 +10290,7 @@ Rows_log_event::do_update_pos(rpl_group_info *rgi)
|
|||
Step the group log position if we are not in a transaction,
|
||||
otherwise increase the event log position.
|
||||
*/
|
||||
rli->stmt_done(log_pos, thd, rgi);
|
||||
error= rli->stmt_done(log_pos, thd, rgi);
|
||||
/*
|
||||
Clear any errors in thd->net.last_err*. It is not known if this is
|
||||
needed or not. It is believed that any errors that may exist in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue