mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 5.5 -> 5.5-mwl248.
This commit is contained in:
@ -5727,9 +5727,12 @@ static int get_schema_stat_record(THD *thd, TABLE_LIST *tables,
|
||||
TABLE *show_table= tables->table;
|
||||
KEY *key_info=show_table->s->key_info;
|
||||
if (show_table->file)
|
||||
{
|
||||
show_table->file->info(HA_STATUS_VARIABLE |
|
||||
HA_STATUS_NO_LOCK |
|
||||
HA_STATUS_TIME);
|
||||
set_statistics_for_table(thd, show_table);
|
||||
}
|
||||
for (uint i=0 ; i < show_table->s->keys ; i++,key_info++)
|
||||
{
|
||||
KEY_PART_INFO *key_part= key_info->key_part;
|
||||
@ -5760,8 +5763,8 @@ static int get_schema_stat_record(THD *thd, TABLE_LIST *tables,
|
||||
KEY *key=show_table->key_info+i;
|
||||
if (key->rec_per_key[j])
|
||||
{
|
||||
ha_rows records=(show_table->file->stats.records /
|
||||
key->rec_per_key[j]);
|
||||
ha_rows records=((double) show_table->stat_records() /
|
||||
key->real_rec_per_key(j));
|
||||
table->field[9]->store((longlong) records, TRUE);
|
||||
table->field[9]->set_notnull();
|
||||
}
|
||||
|
Reference in New Issue
Block a user