1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Bug #28953 Using events in a replication let the slave crash.

Fixed where the slave code would try to update the Lex->sphead which is NULL on an "alter table" commands.


mysql-test/r/rpl_events.result:
  test that "alter event" replicates without crashing the slave
mysql-test/t/rpl_events.test:
  test that "alter event" replicates without crashing the slave
sql/sql_parse.cc:
  Added a check for lex->spd, which isn't set on an "alter event" command
This commit is contained in:
unknown
2007-06-13 16:24:21 -04:00
parent 10a21ed042
commit 31608f67ab
3 changed files with 30 additions and 1 deletions

View File

@@ -1567,7 +1567,7 @@ bool sp_process_definer(THD *thd)
if (lex->definer == NULL)
DBUG_RETURN(TRUE);
if (thd->slave_thread)
if (thd->slave_thread && lex->sphead)
lex->sphead->m_chistics->suid= SP_IS_NOT_SUID;
}
else