This summer, C++ gone wild. These are brilliant:
int Log_event::read_log_event(IO_CACHE* file, String* packet, pthread_mutex_t* log_lock)
and
#ifndef MYSQL_CLIENT Log_event* Log_event::read_log_event(IO_CACHE* file, pthread_mutex_t* log_lock, bool old_format) #else Log_event* Log_event::read_log_event(IO_CACHE* file, bool old_format) #endif
and
Log_event* Log_event::read_log_event(const char* buf, int event_len, const char **error, bool old_format)
Save me.