diff options
author | He Zhenxing <zhenxing.he@sun.com> | 2010-01-24 15:03:23 +0800 |
---|---|---|
committer | He Zhenxing <zhenxing.he@sun.com> | 2010-01-24 15:03:23 +0800 |
commit | 6bf8c119feff7e15d19aea0a6893b2706891d3c1 (patch) | |
tree | 30ea0d6bf62fef90f4f1499d15e388cb43241707 /sql/events.cc | |
parent | a365016f8b0cf007d40d12405a3b7b3990951ba2 (diff) | |
download | mariadb-git-6bf8c119feff7e15d19aea0a6893b2706891d3c1.tar.gz |
Backport Bug#37148 to 5.1
Diffstat (limited to 'sql/events.cc')
-rw-r--r-- | sql/events.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/events.cc b/sql/events.cc index 3273635666e..2770cabae19 100644 --- a/sql/events.cc +++ b/sql/events.cc @@ -476,7 +476,7 @@ Events::create_event(THD *thd, Event_parse_data *parse_data, } /* If the definer is not set or set to CURRENT_USER, the value of CURRENT_USER will be written into the binary log as the definer for the SQL thread. */ - write_bin_log(thd, TRUE, log_query.c_ptr(), log_query.length()); + ret= write_bin_log(thd, TRUE, log_query.c_ptr(), log_query.length()); } } pthread_mutex_unlock(&LOCK_event_metadata); @@ -598,7 +598,7 @@ Events::update_event(THD *thd, Event_parse_data *parse_data, new_element); /* Binlog the alter event. */ DBUG_ASSERT(thd->query() && thd->query_length()); - write_bin_log(thd, TRUE, thd->query(), thd->query_length()); + ret= write_bin_log(thd, TRUE, thd->query(), thd->query_length()); } } pthread_mutex_unlock(&LOCK_event_metadata); @@ -673,7 +673,7 @@ Events::drop_event(THD *thd, LEX_STRING dbname, LEX_STRING name, bool if_exists) event_queue->drop_event(thd, dbname, name); /* Binlog the drop event. */ DBUG_ASSERT(thd->query() && thd->query_length()); - write_bin_log(thd, TRUE, thd->query(), thd->query_length()); + ret= write_bin_log(thd, TRUE, thd->query(), thd->query_length()); } pthread_mutex_unlock(&LOCK_event_metadata); DBUG_RETURN(ret); |