diff options
author | sasha@mysql.sashanet.com <> | 2001-08-09 18:16:43 -0600 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2001-08-09 18:16:43 -0600 |
commit | 681cdbbdf93f2c168368f4bdd79d785a3a2f6811 (patch) | |
tree | 9d06bd339f6bb64b768d1643ebf486cac78790a1 /sql/log_event.h | |
parent | 94db78ce61a998d28a9335bade3e5e1df558a4ea (diff) | |
download | mariadb-git-681cdbbdf93f2c168368f4bdd79d785a3a2f6811.tar.gz |
mysqlbinlog->client
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 8d8ac183f61..94f7cce0e35 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -105,8 +105,12 @@ public: void print_timestamp(FILE* file, time_t *ts = 0); void print_header(FILE* file); +#ifndef MYSQL_CLIENT // if mutex is 0, the read will proceed without mutex static Log_event* read_log_event(IO_CACHE* file, pthread_mutex_t* log_lock); +#else // avoid having to link mysqlbinlog against libpthread + static Log_event* read_log_event(IO_CACHE* file); +#endif static Log_event* read_log_event(const char* buf, int event_len); #ifndef MYSQL_CLIENT |