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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c79ba8e3
Commit
c79ba8e3
authored
Aug 19, 2005
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#12532: Added more memory in malloc for slave query cache
parent
4880d22b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
sql/log_event.cc
sql/log_event.cc
+7
-1
sql/sql_cache.cc
sql/sql_cache.cc
+4
-0
No files found.
sql/log_event.cc
View file @
c79ba8e3
...
@@ -1330,7 +1330,13 @@ Query_log_event::Query_log_event(const char* buf, uint event_len,
...
@@ -1330,7 +1330,13 @@ Query_log_event::Query_log_event(const char* buf, uint event_len,
if
(
!
(
start
=
data_buf
=
(
char
*
)
my_malloc
(
catalog_len
+
1
+
if
(
!
(
start
=
data_buf
=
(
char
*
)
my_malloc
(
catalog_len
+
1
+
time_zone_len
+
1
+
time_zone_len
+
1
+
data_len
+
1
,
MYF
(
MY_WME
))))
data_len
+
1
+
#ifndef MYSQL_CLIENT
#ifdef HAVE_QUERY_CACHE
QUERY_CACHE_FLAGS_SIZE
+
#endif
#endif
db_len
+
1
,
MYF
(
MY_WME
))))
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
if
(
catalog_len
)
// If catalog is given
if
(
catalog_len
)
// If catalog is given
{
{
...
...
sql/sql_cache.cc
View file @
c79ba8e3
...
@@ -923,6 +923,10 @@ sql mode: 0x%lx, sort len: %lu, conncat len: %lu",
...
@@ -923,6 +923,10 @@ sql mode: 0x%lx, sort len: %lu, conncat len: %lu",
0 The query was cached and user was sent the result.
0 The query was cached and user was sent the result.
-1 The query was cached but we didn't have rights to use it.
-1 The query was cached but we didn't have rights to use it.
No error is sent to the client yet.
No error is sent to the client yet.
NOTE
This method requires that sql points to allocated memory of size:
tot_length= query_length + thd->db_length + 1 + QUERY_CACHE_FLAGS_SIZE;
*/
*/
int
int
...
...
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