diff options
author | unknown <serg@serg.mysql.com> | 2002-10-25 22:07:04 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-10-25 22:07:04 +0000 |
commit | 7962de4cf303e71600f7ff2beebcb5900ef41f71 (patch) | |
tree | a265b1027bdd9f187cbc41ed6c5c709d6793109e /sql/log_event.h | |
parent | d51b72cac30e5d02fde6e9c98c3e91716b19ed04 (diff) | |
parent | f5563ddad40e8ab84d457b0e9960ddfdc7faec99 (diff) | |
download | mariadb-git-7962de4cf303e71600f7ff2beebcb5900ef41f71.tar.gz |
merged
BitKeeper/etc/gone:
auto-union
BitKeeper/etc/logging_ok:
auto-union
BitKeeper/deleted/.del-skipkeys~888e38cf95239a33:
'Auto converge rename'
Docs/manual.texi:
Auto merged
libmysqld/lib_sql.cc:
Auto merged
myisam/ft_boolean_search.c:
Auto merged
myisam/ft_nlq_search.c:
Auto merged
myisam/ft_parser.c:
Auto merged
myisam/ftdefs.h:
Auto merged
myisam/mi_create.c:
Auto merged
mysys/my_init.c:
Auto merged
sql/log.cc:
Auto merged
sql/log_event.h:
Auto merged
sql/sql_base.cc:
Auto merged
sql/sql_table.cc:
Auto merged
sql/sql_update.cc:
Auto merged
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index ad0a44f9b4a..db6ea0e6759 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -516,6 +516,35 @@ class Rand_log_event: public Log_event #ifndef MYSQL_CLIENT Rand_log_event(THD* thd_arg, ulonglong seed1_arg, ulonglong seed2_arg) :Log_event(thd_arg),seed1(seed1_arg),seed2(seed2_arg) + {} + void pack_info(String* packet); + int exec_event(struct st_relay_log_info* rli); +#else + void print(FILE* file, bool short_form = 0, char* last_db = 0); +#endif + + Rand_log_event(const char* buf, bool old_format); + ~Rand_log_event() {} + Log_event_type get_type_code() { return RAND_EVENT;} + int get_data_size() { return sizeof(ulonglong) * 2; } + int write_data(IO_CACHE* file); + bool is_valid() { return 1; } +}; + +/***************************************************************************** + * + * Rand log event class + * + ****************************************************************************/ +class Rand_log_event: public Log_event +{ + public: + ulonglong seed1; + ulonglong seed2; + +#ifndef MYSQL_CLIENT + Rand_log_event(THD* thd_arg, ulonglong seed1_arg, ulonglong seed2_arg) + :Log_event(thd_arg),seed1(seed1_arg),seed2(seed2_arg) {} void pack_info(String* packet); int exec_event(struct st_relay_log_info* rli); |