Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime

into  whirlpool.hristov.com:/work/mysql-5.1-runtime


sql/events.cc:
  Auto merged
This commit is contained in:
unknown 2008-02-22 16:20:05 +01:00
commit 0dedada2ff
2 changed files with 42 additions and 3 deletions

View file

@ -1185,7 +1185,12 @@ Events::load_events_from_db(THD *thd)
{
/*
If not created, a stale event - drop if immediately if
ON COMPLETION NOT PRESERVE
ON COMPLETION NOT PRESERVE.
XXX: This won't be replicated, thus the drop won't appear in
in the slave. When the slave is restarted it will drop events.
However, as the slave will be "out of sync", it might happen that
an event created on the master, after master restart, won't be
replicated to the slave correctly, as the create will fail there.
*/
int rc= table->file->ha_delete_row(table->record[0]);
if (rc)