summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorlars@mysql.com <>2005-08-19 16:25:55 +0200
committerlars@mysql.com <>2005-08-19 16:25:55 +0200
commitc79ba8e3469a3a37074248be9f80e274cff65e99 (patch)
tree97572a30ac65f4c3bd524682762297ace4a1331c /sql/sql_cache.cc
parent4880d22b79fc3ab486a4ec0b4f267bfbe06b367c (diff)
downloadmariadb-git-c79ba8e3469a3a37074248be9f80e274cff65e99.tar.gz
BUG#12532: Added more memory in malloc for slave query cache
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 0f4fdd52583..81eed413a8e 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -923,6 +923,10 @@ end:
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.
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