summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2001-08-09 19:16:15 -0600
committersasha@mysql.sashanet.com <>2001-08-09 19:16:15 -0600
commitf6836bf81abb42523349ac6cf0b8807fa9e69c3e (patch)
treeed06f905f1515a2117cc0c243c526264fccaac77 /sql/log_event.h
parentd9737f20f838f189ef1f3d25df7739770f3b52b9 (diff)
parentbe4f7bbdcf89e5fa2a9e8193cda1d317918d7d07 (diff)
downloadmariadb-git-f6836bf81abb42523349ac6cf0b8807fa9e69c3e.tar.gz
merged
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index d16d76bed37..4c24f640465 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -233,10 +233,13 @@ public:
virtual void print(FILE* file, bool short_form = 0, char* last_db = 0) = 0;
void print_timestamp(FILE* file, time_t *ts = 0);
void print_header(FILE* file);
-#endif
+#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);
const char* get_type_str();