summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2003-01-30 21:39:54 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2003-01-30 21:39:54 +0400
commit6828a4c0a1196a3931fd9c6bbc6d958b17535ccf (patch)
tree83f6e561c259e940868d286dca7da1854a1fd00d /sql/log.cc
parentef62b4c948d68108c0945ebde33540b03b392a6d (diff)
downloadmariadb-git-6828a4c0a1196a3931fd9c6bbc6d958b17535ccf.tar.gz
'Replicate user variables' task
include/my_sys.h: Addet reset_dinamic BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 5dcb5857026..b83dfce6fab 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1097,6 +1097,23 @@ bool MYSQL_LOG::write(Log_event* event_info)
if (e.write(file))
goto err;
}
+ if (thd->user_var_events.elements)
+ {
+ for (uint i= 0; i < thd->user_var_events.elements; i++)
+ {
+ BINLOG_USER_VAR_EVENT *user_var_event;
+ get_dynamic(&thd->user_var_events,(gptr) &user_var_event, i);
+ User_var_log_event e(thd, user_var_event->user_var_event->name.str,
+ user_var_event->user_var_event->name.length,
+ user_var_event->value,
+ user_var_event->length,
+ user_var_event->type,
+ user_var_event->charset_number);
+ e.set_log_pos(this);
+ if (e.write(file))
+ goto err;
+ }
+ }
if (thd->variables.convert_set)
{
char buf[256], *p;