mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Structure for storing parameters of query in query cache (asked by Bar)
sql/mysql_priv.h: Structure for storing parameters of query in query cache sql/sql_cache.cc: Structure for storing parameters of query in query cache sql/sql_parse.cc: Structure for storing parameters of query in query cache
This commit is contained in:
@@ -1591,8 +1591,8 @@ bool alloc_query(THD *thd, char *packet, ulong packet_length)
|
||||
/* We must allocate some extra memory for query cache */
|
||||
if (!(thd->query= (char*) thd->memdup_w_gap((gptr) (packet),
|
||||
packet_length,
|
||||
thd->db_length+2+
|
||||
sizeof(ha_rows))))
|
||||
thd->db_length+ 1 +
|
||||
QUERY_CACHE_FLAGS_SIZE)))
|
||||
return 1;
|
||||
thd->query[packet_length]=0;
|
||||
thd->query_length= packet_length;
|
||||
|
||||
Reference in New Issue
Block a user