diff options
author | monty@narttu.mysql.fi <> | 2003-03-04 15:02:49 +0200 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-03-04 15:02:49 +0200 |
commit | d0d071dca9abcbf4a68c54b6bd0b120ee4e84fa8 (patch) | |
tree | ee527f25f2393fa96aeb607255dcd9bc16dac518 /sql/log_event.h | |
parent | 6cbbbd69485ec0547db127e439c113481d31f1d5 (diff) | |
download | mariadb-git-d0d071dca9abcbf4a68c54b6bd0b120ee4e84fa8.tar.gz |
Fix for using unitialized mutex when running version compiled with --debug
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index b9b1355a304..62b5873fabb 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -583,7 +583,7 @@ public: ~Intvar_log_event() {} Log_event_type get_type_code() { return INTVAR_EVENT;} const char* get_var_type_name(); - int get_data_size() { return sizeof(type) + sizeof(val);} + int get_data_size() { return 9; /* sizeof(type) + sizeof(val) */;} int write_data(IO_CACHE* file); bool is_valid() { return 1; } }; @@ -616,7 +616,7 @@ class Rand_log_event: public Log_event Rand_log_event(const char* buf, bool old_format); ~Rand_log_event() {} Log_event_type get_type_code() { return RAND_EVENT;} - int get_data_size() { return sizeof(ulonglong) * 2; } + int get_data_size() { return 16; /* sizeof(ulonglong) * 2*/ } int write_data(IO_CACHE* file); bool is_valid() { return 1; } }; |