summaryrefslogtreecommitdiff
path: root/sql/sql_cache.h
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-12-01 17:19:10 +0400
committerunknown <hf@deer.(none)>2003-12-01 17:19:10 +0400
commit5d90d9406eb23052916482d4b4f76631a507cfe9 (patch)
tree126aa9404b20610fed02f1d2fb10aac967ed5334 /sql/sql_cache.h
parent046b80bbeb074aeea3158c8108d93e6e6215d2e2 (diff)
downloadmariadb-git-5d90d9406eb23052916482d4b4f76631a507cfe9.tar.gz
SCRUM
WL#1246 (Query cache in embedded library) libmysqld/Makefile.am: New files added to the project libmysqld/lib_sql.cc: added initialization of 'newborn' fields: catalog, catalog_length, def_length sql/sql_cache.cc: Code added to provide query-cache in embedded library query_cache_insert isn't called during the query execution in embedded library. So we call it in query_cache_end_of_result. Parameter of query_cache_end_of_result changed to get access to the recordset sql/sql_cache.h: function's parameter changed sql/sql_parse.cc: we don't need these anymore
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r--sql/sql_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h
index 68e69ab523f..ac4f465bf79 100644
--- a/sql/sql_cache.h
+++ b/sql/sql_cache.h
@@ -392,7 +392,7 @@ protected:
void destroy();
friend void query_cache_insert(NET *net, const char *packet, ulong length);
- friend void query_cache_end_of_result(NET *net);
+ friend void query_cache_end_of_result(THD *thd);
friend void query_cache_abort(NET *net);
/*
@@ -416,7 +416,7 @@ protected:
extern Query_cache query_cache;
extern TYPELIB query_cache_type_typelib;
-void query_cache_end_of_result(NET *net);
+void query_cache_end_of_result(THD *thd);
void query_cache_abort(NET *net);
#endif