24#ifndef SQL_SYSTEM_TABLE_CHECK_INCLUDED
25#define SQL_SYSTEM_TABLE_CHECK_INCLUDED
29#include "mysqld_error.h"
48 MY_ATTRIBUTE((format(printf, 3, 4))) {
55 .
errcode(ER_SERVER_TABLE_CHECK_FAILED)
59 else if (code == ER_CANNOT_LOAD_FROM_TABLE_V2) {
70 if (code == ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2)
71 code = ER_SERVER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2;
72 else if (code == ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2)
73 code = ER_SERVER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2;
75 code = ER_SERVER_ACL_TABLE_ERROR;
Modular logger: fluid API.
Definition: log_builtins.h:894
LogEvent & prio(longlong val)
Set error message priority.
Definition: log_builtins.h:1286
LogEvent & subsys(const char *val)
Which subsystem in the source was the problem detected in? ("Repl"/"InnoDB"/"Server")
Definition: log_builtins.h:1161
LogEvent & errcode(longlong val)
Append a numeric error code.
Definition: log_builtins.h:1063
LogEvent & source_file(const char *val)
Which source file was the problem detected in?
Definition: log_builtins.h:1124
LogEvent & messagev(const char *fmt, va_list ap)
Fill in a format string by substituting the % with the given arguments, then add the result as the ev...
Definition: log_builtins.h:1346
Class to check if system table is intact.
Definition: sql_system_table_check.h:37
enum loglevel m_log_level
Definition: sql_system_table_check.h:91
THD * thd()
Definition: sql_system_table_check.h:44
THD * m_thd
Definition: sql_system_table_check.h:90
System_table_intact(THD *thd, enum loglevel log_level=ERROR_LEVEL)
Definition: sql_system_table_check.h:39
void report_error(uint code, const char *fmt,...) override
Definition: sql_system_table_check.h:47
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
bool has_keys
Definition: table.h:611
const char * ER_THD_NONCONST(const THD *thd, int mysql_errno)
Definition: derror.cc:112
void my_error(int nr, myf MyFlags,...)
Fill in and print a previously registered error message.
Definition: my_error.cc:216
void my_printv_error(uint error, const char *format, myf MyFlags, va_list ap)
Print an error message.
Definition: my_error.cc:290
#define LogErr(severity, ecode,...)
Definition: log_builtins.h:856
#define LOG_SUBSYSTEM_TAG
Definition: log_sink_test.cc:27
#define MY_BASENAME
Definition: my_basename.h:40
#define MYF(v)
Definition: my_inttypes.h:97
Definition of the global "loglevel" enumeration.
loglevel
Definition: my_loglevel.h:41
@ WARNING_LEVEL
Definition: my_loglevel.h:44
@ ERROR_LEVEL
Definition: my_loglevel.h:43
static loglevel log_level(const Sql_condition *condition)
Definition: histogram.cc:1644
const char * table_name
Definition: rules_table_service.cc:56
const char * db_name
Definition: rules_table_service.cc:55