mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix histogram memory management
There are "local" histograms that are allocated by one thread for one TABLE object, and "global" that are allocated for TABLE_SHARE.
This commit is contained in:
@@ -1045,6 +1045,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
||||
else
|
||||
compl_result_code= HA_ADMIN_FAILED;
|
||||
|
||||
free_statistics_for_table(thd, table->table);
|
||||
if (compl_result_code)
|
||||
result_code= HA_ADMIN_FAILED;
|
||||
else
|
||||
|
Reference in New Issue
Block a user