mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixing the build failure on Windows debug build.
This commit is contained in:
@@ -2852,17 +2852,24 @@ Query_log_event::Query_log_event(const char* buf, uint event_len,
|
||||
sql_parse.cc
|
||||
*/
|
||||
|
||||
#if !defined(MYSQL_CLIENT) && defined(HAVE_QUERY_CACHE)
|
||||
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
|
||||
#if !defined(MYSQL_CLIENT) && defined(HAVE_QUERY_CACHE)
|
||||
+ sizeof(size_t)//for db_len
|
||||
+ db_len + 1
|
||||
+ QUERY_CACHE_FLAGS_SIZE
|
||||
+ sizeof(size_t)//for db_len
|
||||
+ db_len + 1
|
||||
+ 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
|
||||
, MYF(MY_WME))))
|
||||
DBUG_VOID_RETURN;
|
||||
if (catalog_len) // If catalog is given
|
||||
{
|
||||
|
Reference in New Issue
Block a user