mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Addressed the following issue from the review of the patch for
engine-independent statistics. If a table was created for InnoDB then the execution of the ANALYZE command over this table blocked any INSERT/DELETE/UPDATE of the table.
This commit is contained in:
@ -2058,6 +2058,8 @@ int collect_statistics_for_table(THD *thd, TABLE *table)
|
||||
/* Perform a full table scan to collect statistics on 'table's columns */
|
||||
if (!(rc= file->ha_rnd_init(TRUE)))
|
||||
{
|
||||
DEBUG_SYNC(table->in_use, "statistics_collection_start");
|
||||
|
||||
while ((rc= file->ha_rnd_next(table->record[0])) != HA_ERR_END_OF_FILE)
|
||||
{
|
||||
if (thd->killed)
|
||||
|
Reference in New Issue
Block a user