wl2325 wl2324

This commit is contained in:
tomas@poseidon.ndb.mysql.com 2006-01-12 19:51:02 +01:00
commit 4b731ddfb4
115 changed files with 8132 additions and 566 deletions

View file

@ -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;