Skip to content

Commit

Permalink
MDEV-10814: Don't coredump query cache
Browse files Browse the repository at this point in the history
merge fix: additional_data_size is a size_t class Query_cache member.
  • Loading branch information
grooverdan committed Feb 26, 2018
1 parent 0805a95 commit 31aa277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/sql_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2594,7 +2594,7 @@ size_t Query_cache::init_cache()
{
size_t mem_bin_count, num, step;
size_t mem_bin_size, prev_size, inc;
size_t additional_data_size, max_mem_bin_size, approx_additional_data_size;
size_t max_mem_bin_size, approx_additional_data_size;
int align;

DBUG_ENTER("Query_cache::init_cache");
Expand Down
2 changes: 1 addition & 1 deletion sql/sql_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class Query_cache
till the end of a flush operation.
*/
mysql_mutex_t structure_guard_mutex;
ulong additional_data_size;
size_t additional_data_size;
uchar *cache; // cache memory
Query_cache_block *first_block; // physical location block list
Query_cache_block *queries_blocks; // query list (LIFO)
Expand Down

0 comments on commit 31aa277

Please sign in to comment.