1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

BUG#23171: Illegal group log position

Tail fixes after re-applying patches to older version of clone.
This commit is contained in:
mats@romeo.(none)
2007-03-22 08:32:41 +01:00
parent 3920f529ea
commit 2ee007ba9d
6 changed files with 356 additions and 150 deletions

View File

@ -150,9 +150,17 @@ void mysql_client_binlog_statement(THD* thd)
DBUG_PRINT("info", ("bytes_decoded=%d; bufptr=0x%lx; buf[EVENT_LEN_OFFSET]=%u",
bytes_decoded, bufptr, uint4korr(bufptr+EVENT_LEN_OFFSET)));
ev->thd= thd;
if (int err= ev->exec_event(thd->rli_fake))
/*
We go directly to the application phase, since we don't need
to check if the event shall be skipped or not.
Neither do we have to update the log positions, since that is
not used at all: the rli_fake instance is used only for error
reporting.
*/
if (int err= ev->apply_event(thd->rli_fake))
{
DBUG_PRINT("info", ("exec_event() - error=%d", error));
DBUG_PRINT("info", ("apply_event() - error=%d", error));
/*
TODO: Maybe a better error message since the BINLOG statement
now contains several events.