diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2014-03-28 00:32:53 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2014-03-28 00:32:53 +0400 |
commit | 92e49bb066da7cb5a38c2d3390176afdc5e67592 (patch) | |
tree | 264a8ce5c05ac36c7e70f0ef36fc486ef67a0662 /sql | |
parent | 42263a2b0a16211f260e721a3087a1b14b09bbd9 (diff) | |
download | mariadb-git-92e49bb066da7cb5a38c2d3390176afdc5e67592.tar.gz |
MDEV-4360: ANALYZE shows "Table is already up to date" while updating stats
- Show a line with "Engine-independent statistics collected" when ANALYZE command
caused EITS statistics to be recollected.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_admin.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/sql_admin.cc b/sql/sql_admin.cc index fc506091dea..41808bc2717 100644 --- a/sql/sql_admin.cc +++ b/sql/sql_admin.cc @@ -736,6 +736,17 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables, compl_result_code= update_statistics_for_table(thd, table->table); if (compl_result_code) result_code= HA_ADMIN_FAILED; + else + { + protocol->prepare_for_resend(); + protocol->store(table_name, system_charset_info); + protocol->store(operator_name, system_charset_info); + protocol->store(STRING_WITH_LEN("status"), system_charset_info); + protocol->store(STRING_WITH_LEN("Engine-independent statistics collected"), + system_charset_info); + if (protocol->write()) + goto err; + } } if (result_code == HA_ADMIN_NOT_IMPLEMENTED && need_repair_or_alter) |