diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-09 17:13:43 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-09 17:13:43 +0400 |
commit | 83f7151da5259fa07ab2c26600009d53adef50f3 (patch) | |
tree | 39c8f971be55aabd9e294a534fd8b6f448374af9 /sql/table.h | |
parent | 870d7589c6c4596b0f1a641add5071469e2c94a7 (diff) | |
download | mariadb-git-83f7151da5259fa07ab2c26600009d53adef50f3.tar.gz |
MDEV-10435 crash with bad stat tables.
Functions from sql/statistics.cc don't seem to expect
stat tables to fail or to have inadequate structure.
Table open errors suppressed and some validity
checks added. Invalid tables reported to the server
log.
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index eb4076e02e2..093c357e575 100644 --- a/sql/table.h +++ b/sql/table.h @@ -524,6 +524,16 @@ public: }; +/* + If the table isn't valid, report the error to the server log only. +*/ +class Table_check_intact_log_error : public Table_check_intact +{ +protected: + void report_error(uint, const char *fmt, ...); +}; + + /** Class representing the fact that some thread waits for table share to be flushed. Is used to represent information about |