summaryrefslogtreecommitdiff
path: root/sql/log_event.cc
diff options
context:
space:
mode:
authorRohit Kalhans <rohit.kalhans@oracle.com>2012-05-30 13:54:15 +0530
committerRohit Kalhans <rohit.kalhans@oracle.com>2012-05-30 13:54:15 +0530
commit96eb519eb77b078f9f96935aacaded44e20ed95c (patch)
tree3758d77e9ea13f59471857b88ffbf93f62c3c1c7 /sql/log_event.cc
parentd8b2d4a0694156848db0862a230d248653f8ebe5 (diff)
downloadmariadb-git-96eb519eb77b078f9f96935aacaded44e20ed95c.tar.gz
Fixing the build failure on Windows debug build.
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r--sql/log_event.cc17
1 files changed, 12 insertions, 5 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc
index e7c3419c34f..a79797e4bc9 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -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
{