From db39f3a8ce7dd613fe121393e91c6c5a204e2d2d Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 12 Apr 2007 15:50:54 +0200 Subject: BUG#27779 (Slave cannot read old rows log events): Taking code from before BUG#22583 and incorporating as events to be able to read old events. Also incorporating old pack and unpack functions into patch. client/Makefile.am: Adding files log_event_old.{h,cc} and rpl_record_old.{h,cc} client/mysqlbinlog.cc: Adding log_event_old.cc. libmysqld/Makefile.am: Adding files log_event_old.{h,cc} and rpl_record_old.{h,cc} sql/CMakeLists.txt: Adding files log_event_old.{h,cc} and rpl_record_old.{h,cc} sql/Makefile.am: Adding files log_event_old.{h,cc} and rpl_record_old.{h,cc} sql/log_event.cc: Adding code to read pre-GA rows events. sql/log_event.h: Refactoring to support inheritance and including "old" events definitions. sql/log_event_old.cc: New BitKeeper file ``sql/log_event_old.cc'' sql/log_event_old.h: New BitKeeper file ``sql/log_event_old.h'' sql/rpl_record_old.cc: New BitKeeper file ``sql/rpl_record_old.cc'' sql/rpl_record_old.h: New BitKeeper file ``sql/rpl_record_old.h'' --- sql/rpl_record_old.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sql/rpl_record_old.h (limited to 'sql/rpl_record_old.h') diff --git a/sql/rpl_record_old.h b/sql/rpl_record_old.h new file mode 100644 index 00000000000..7249d98c7b1 --- /dev/null +++ b/sql/rpl_record_old.h @@ -0,0 +1,17 @@ +#ifndef RPL_RECORD_OLD_H +#define RPL_RECORD_OLD_H + +#ifndef MYSQL_CLIENT +my_size_t pack_row_old(THD *thd, TABLE *table, MY_BITMAP const* cols, + byte *row_data, const byte *record); + +#ifdef HAVE_REPLICATION +int unpack_row_old(RELAY_LOG_INFO *rli, + TABLE *table, uint const colcnt, byte *record, + char const *row, MY_BITMAP const *cols, + char const **row_end, ulong *master_reclength, + MY_BITMAP* const rw_set, + Log_event_type const event_type); +#endif +#endif +#endif -- cgit v1.2.1