1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-26519: Improved histograms: Better error reporting, test coverage

Also report JSON histogram load errors into error log, like it is already
done with other histogram/statistics load errors.

Add test coverage to see what happens if one upgrades but does NOT run
mysql_upgrade.
This commit is contained in:
Sergei Petrunia
2021-12-02 20:47:08 +03:00
parent a0f93f433a
commit a0916cf5a2
5 changed files with 107 additions and 0 deletions

View File

@@ -696,6 +696,10 @@ err:
ER_THD(thd, ER_JSON_HISTOGRAM_PARSE_FAILED),
db_name, table_name,
err, (je.s.c_str - (const uchar*)hist_data));
sql_print_error(ER_THD(thd, ER_JSON_HISTOGRAM_PARSE_FAILED),
db_name, table_name, err,
(je.s.c_str - (const uchar*)hist_data));
DBUG_RETURN(true);
}