1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

made variable query_cache_min_res_unit from QUERY_CACHE_MIN_RESULT_DATA_SIZE (SCRUM)

This commit is contained in:
bell@sanja.is.com.ua
2003-03-02 21:39:03 +02:00
parent b381cb0423
commit b2f27a155c
7 changed files with 124 additions and 3 deletions

View File

@@ -743,6 +743,14 @@ ulong Query_cache::resize(ulong query_cache_size_arg)
}
ulong Query_cache::set_min_res_unit(ulong size)
{
if (size < min_allocation_unit)
size= min_allocation_unit;
return (min_result_data_size= ALIGN_SIZE(size));
}
void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used)
{
TABLE_COUNTER_TYPE local_tables;