summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-06-29 20:26:33 +0300
committerunknown <monty@hundin.mysql.fi>2002-06-29 20:26:33 +0300
commit10d282f6321cf02b060ed489550b65c35f4bee58 (patch)
tree3f4af5895e26720092bbc9a5f40873681337d97e /sql/log_event.h
parent6e5952d087b8686242e28850ce958df0b00499d7 (diff)
downloadmariadb-git-10d282f6321cf02b060ed489550b65c35f4bee58.tar.gz
Added support for rw_tryrdlock() and rw_trywrlock()
include/my_sys.h: Removed not needed macro (SAFE_MUTEX can handle this case better). sql/log.cc: Simple optimization sql/log_event.cc: Fix problem in LOAD DATA if table_name is NULL (unlikely event) sql/log_event.h: cleanup sql/slave.cc: remove unnecessary assert
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index 29cf6287a4f..bcdcc72e0c2 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -407,15 +407,15 @@ public:
String fields_buf;
Load_log_event(THD* thd, sql_exchange* ex, const char* db_arg,
- const char* table_name_arg,
+ const char* table_name_arg,
List<Item>& fields_arg, enum enum_duplicates handle_dup);
void set_fields(List<Item> &fields_arg);
void pack_info(String* packet);
const char* get_db() { return db; }
int exec_event(struct st_relay_log_info* rli)
- {
- return exec_event(thd->slave_net,rli);
- }
+ {
+ return exec_event(thd->slave_net,rli);
+ }
int exec_event(NET* net, struct st_relay_log_info* rli);
#else
void print(FILE* file, bool short_form = 0, char* last_db = 0);
@@ -423,8 +423,7 @@ public:
Load_log_event(const char* buf, int event_len, bool old_format);
~Load_log_event()
- {
- }
+ {}
Log_event_type get_type_code() { return sql_ex.new_format() ?
NEW_LOAD_EVENT: LOAD_EVENT; }
int write_data_header(IO_CACHE* file);