diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2003-01-30 21:39:54 +0400 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2003-01-30 21:39:54 +0400 |
commit | 6828a4c0a1196a3931fd9c6bbc6d958b17535ccf (patch) | |
tree | 83f6e561c259e940868d286dca7da1854a1fd00d /sql/log.cc | |
parent | ef62b4c948d68108c0945ebde33540b03b392a6d (diff) | |
download | mariadb-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.cc | 17 |
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; |