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:881
LogEvent & prio(longlong val)
Set error message priority.
Definition: log_builtins.h:1273
LogEvent & subsys(const char *val)
Which subsystem in the source was the problem detected in? ("Repl"/"InnoDB"/"Server")
Definition: log_builtins.h:1148
LogEvent & errcode(longlong val)
Append a numeric error code.
Definition: log_builtins.h:1050
LogEvent & source_file(const char *val)
Which source file was the problem detected in?
Definition: log_builtins.h:1111
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:1333
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:34
bool has_keys
Definition: table.h:597
const char * ER_THD_NONCONST(const THD *thd, int mysql_errno)
Definition: derror.cc:111
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:843
#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
const char * table_name
Definition: rules_table_service.cc:56
const char * db_name
Definition: rules_table_service.cc:55
unsigned int uint
Definition: uca9-dump.cc:75