summaryrefslogtreecommitdiff
path: root/sql/sql_cache.h
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2003-03-02 21:39:03 +0200
committerbell@sanja.is.com.ua <>2003-03-02 21:39:03 +0200
commitb2f27a155c5eb1ebf8a74aae5d602ef2308890ac (patch)
treeec81cf25e43bd59edb6884368afd018c075a766e /sql/sql_cache.h
parentb381cb042364dcb6cb475ebc9198329c6db59f3e (diff)
downloadmariadb-git-b2f27a155c5eb1ebf8a74aae5d602ef2308890ac.tar.gz
made variable query_cache_min_res_unit from QUERY_CACHE_MIN_RESULT_DATA_SIZE (SCRUM)
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r--sql/sql_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h
index b15df28f54b..68bd3d48ff5 100644
--- a/sql/sql_cache.h
+++ b/sql/sql_cache.h
@@ -345,7 +345,10 @@ protected:
/* resize query cache (return real query size, 0 if disabled) */
ulong resize(ulong query_cache_size);
+ /* set limit on result size */
inline void result_size_limit(ulong limit){query_cache_limit=limit;}
+ /* set minimal result data allocation unit size */
+ ulong set_min_res_unit(ulong size);
/* register query in cache */
void store_query(THD *thd, TABLE_LIST *used_tables);