summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-08-27 02:33:06 +0400
committerunknown <sergefp@mysql.com>2005-08-27 02:33:06 +0400
commit9bc3976c79d484c380ed9265c51918a942cd22b7 (patch)
treec1da247a061c35537652a59670be0d73b7861a51 /sql/log.cc
parent4d0513127c180e4fa4483dc3f149a73bee6979d0 (diff)
downloadmariadb-git-9bc3976c79d484c380ed9265c51918a942cd22b7.tar.gz
Slightly amended Monty's SP replication code cleanup patch
sql/item.cc: Code cleanup sql/item.h: Code cleanup sql/log.cc: Added comments sql/sp_head.cc: Code cleanup patch from Monty: in subst_spvars() - Move local variables first in block - Use res|= instead of res |= - Use strmake() instead of alloc + memcpy Added: - Fail the query if we don't have enough memory to produce a binlog-suitable query string: if we're so low on memory we're likely to fail the query anyway, and failing now removes the need for hack with THD::query_str_binlog_suitable. sql/sql_class.cc: Remove THD::query_str_binlog_unsuitable sql/sql_class.h: Remove THD::query_str_binlog_unsuitable sql/sql_delete.cc: Remove THD::query_str_binlog_unsuitable sql/sql_insert.cc: Remove THD::query_str_binlog_unsuitable sql/sql_parse.cc: Code cleanup sql/sql_update.cc: Remove THD::query_str_binlog_unsuitable
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 0f9e8df7dfa..d62fa52a165 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1579,6 +1579,10 @@ bool MYSQL_LOG::write(Log_event *event_info)
if (thd->binlog_evt_union.do_union)
{
+ /*
+ In Stored function; Remember that function call caused an update.
+ We will log the function call to the binary log on function exit
+ */
thd->binlog_evt_union.unioned_events= TRUE;
thd->binlog_evt_union.unioned_events_trans |= event_info->cache_stmt;
DBUG_RETURN(0);