Commit c7497eb0 authored by Rohit Kalhans's avatar Rohit Kalhans

upmerge from mysql-5.1 branch -> mysql-5.5 branch

parents 5fbbd431 e93fc1fe
...@@ -2926,17 +2926,24 @@ Query_log_event::Query_log_event(const char* buf, uint event_len, ...@@ -2926,17 +2926,24 @@ Query_log_event::Query_log_event(const char* buf, uint event_len,
sql_parse.cc sql_parse.cc
*/ */
#if !defined(MYSQL_CLIENT) && defined(HAVE_QUERY_CACHE)
if (!(start= data_buf = (Log_event::Byte*) my_malloc(catalog_len + 1 if (!(start= data_buf = (Log_event::Byte*) my_malloc(catalog_len + 1
+ time_zone_len + 1 + time_zone_len + 1
+ user.length + 1 + user.length + 1
+ host.length + 1 + host.length + 1
+ data_len + 1 + data_len + 1
#if !defined(MYSQL_CLIENT) && defined(HAVE_QUERY_CACHE)
+ sizeof(size_t)//for db_len + sizeof(size_t)//for db_len
+ db_len + 1 + db_len + 1
+ QUERY_CACHE_FLAGS_SIZE + QUERY_CACHE_FLAGS_SIZE,
MYF(MY_WME))))
#else
if (!(start= data_buf = (Log_event::Byte*) my_malloc(catalog_len + 1
+ time_zone_len + 1
+ user.length + 1
+ host.length + 1
+ data_len + 1,
MYF(MY_WME))))
#endif #endif
, MYF(MY_WME))))
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
if (catalog_len) // If catalog is given if (catalog_len) // If catalog is given
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment