mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge branch '10.2' into 10.3
This commit is contained in:
@ -2108,6 +2108,10 @@ int alloc_statistics_for_table(THD* thd, TABLE *table)
|
||||
ulonglong *idx_avg_frequency= (ulonglong*) alloc_root(&table->mem_root,
|
||||
sizeof(ulonglong) * key_parts);
|
||||
|
||||
if (table->file->ha_rnd_init(TRUE))
|
||||
DBUG_RETURN(1);
|
||||
table->file->ha_rnd_end();
|
||||
|
||||
uint columns= 0;
|
||||
for (field_ptr= table->field; *field_ptr; field_ptr++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user