mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
wl2325 wl2324
This commit is contained in:
@ -972,6 +972,9 @@ int reset_slave(THD *thd, MASTER_INFO* mi)
|
||||
error=1;
|
||||
goto err;
|
||||
}
|
||||
|
||||
ha_reset_slave(thd);
|
||||
|
||||
// delete relay logs, clear relay log coordinates
|
||||
if ((error= purge_relay_logs(&mi->rli, thd,
|
||||
1 /* just reset */,
|
||||
@ -1316,6 +1319,13 @@ bool mysql_show_binlog_events(THD* thd)
|
||||
Protocol::SEND_NUM_ROWS | Protocol::SEND_EOF))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
/*
|
||||
Wait for handlers to insert any pending information
|
||||
into the binlog. For e.g. ndb which updates the binlog asynchronously
|
||||
this is needed so that the uses sees all its own commands in the binlog
|
||||
*/
|
||||
ha_binlog_wait(thd);
|
||||
|
||||
if (mysql_bin_log.is_open())
|
||||
{
|
||||
LEX_MASTER_INFO *lex_mi= &thd->lex->mi;
|
||||
|
Reference in New Issue
Block a user