diff options
author | Igor Babaev <igor@askmonty.org> | 2013-01-13 00:40:38 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2013-01-13 00:40:38 -0800 |
commit | 7d5c56cb410bd0363e1c66c31149a79086584bbb (patch) | |
tree | cf76debbd4fa1d761c00f5798aec2e1843185686 /sql/sql_base.cc | |
parent | 7d9df8075e4c9392f4352e6ccd86921994f264bc (diff) | |
download | mariadb-git-7d5c56cb410bd0363e1c66c31149a79086584bbb.tar.gz |
Fixed bug mdev-4019.
The bug could cause a crash when several connections needed
persistent statistics for the same table.
Also added a missing call of set_statistics_for_table() in the code
of the function mysql_update.
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index b7f321e6290..cb1555ea142 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -4654,6 +4654,7 @@ open_and_process_table(THD *thd, LEX *lex, TABLE_LIST *tables, Field **table_field_ptr= tables->table->field; for ( ; *field_ptr; field_ptr++, table_field_ptr++) (*table_field_ptr)->read_stats= (*field_ptr)->read_stats; + tables->table->stats_is_read= table_share->stats_cb.stats_is_read; } } } |