summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-03-04 15:02:49 +0200
committerunknown <monty@narttu.mysql.fi>2003-03-04 15:02:49 +0200
commit57ccb39290b35dc01922cffbee1f491b7ff73377 (patch)
treeee527f25f2393fa96aeb607255dcd9bc16dac518 /sql/log_event.h
parent58d1bdf210ccf276d668ffc59fcdabcbf8b842f9 (diff)
downloadmariadb-git-57ccb39290b35dc01922cffbee1f491b7ff73377.tar.gz
Fix for using unitialized mutex when running version compiled with --debug
include/mysql_embed.h: Disable shared memory for embedded version libmysqld/lib_sql.cc: Fix for --debug version (init_thread_environment was called in wrong place) sql/log_event.h: Portability fix sql/mysqld.cc: Fix for --debug version (init_thread_environment was called in wrong place) sql/sql_parse.cc: Simply code cleanup
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h4
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; }
};