Commit 64f1e4ad authored by Rohit Kalhans's avatar Rohit Kalhans

Fixing the build failure on Windows debug build.

parent 35d4c18e
...@@ -2852,17 +2852,24 @@ Query_log_event::Query_log_event(const char* buf, uint event_len, ...@@ -2852,17 +2852,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