Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c7497eb0
Commit
c7497eb0
authored
May 30, 2012
by
Rohit Kalhans
Browse files
Options
Browse Files
Download
Plain Diff
upmerge from mysql-5.1 branch -> mysql-5.5 branch
parents
5fbbd431
e93fc1fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
sql/log_event.cc
sql/log_event.cc
+12
-5
No files found.
sql/log_event.cc
View file @
c7497eb0
...
...
@@ -2926,17 +2926,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
+
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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment