summaryrefslogtreecommitdiff
path: root/sql/events.cc
diff options
context:
space:
mode:
authorunknown <andrey@whirlpool.hristov.com>2008-02-22 16:20:05 +0100
committerunknown <andrey@whirlpool.hristov.com>2008-02-22 16:20:05 +0100
commit0dedada2ff7c222d929e1f6a87a8311b89471ba8 (patch)
treec703686cfc2a20594143c2a7bcdaec11f92e10a0 /sql/events.cc
parent5990242fff96761cd44a4b003657714b4f88a786 (diff)
parent5d6ca9c2a33cf3e1496e83a746f07e81f02b5a86 (diff)
downloadmariadb-git-0dedada2ff7c222d929e1f6a87a8311b89471ba8.tar.gz
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
Diffstat (limited to 'sql/events.cc')
-rw-r--r--sql/events.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/events.cc b/sql/events.cc
index fc736a5379b..4225ca055de 100644
--- a/sql/events.cc
+++ b/sql/events.cc
@@ -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)