mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WL 2826: Another step
sql/mysql_priv.h: Set error_inject_code to zero after firing error injection sql/sql_partition.cc: New entries for new functions
This commit is contained in:
@ -616,7 +616,13 @@ struct Query_cache_query_flags
|
||||
inline bool
|
||||
my_error_inject(int error)
|
||||
{
|
||||
return (current_thd->variables.error_inject_code == error) ? 1 : 0;
|
||||
THD *thd= current_thd;
|
||||
if (thd->variables.error_inject_code == error)
|
||||
{
|
||||
thd->variables.error_inject_code= 0;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define ERROR_INJECTOR_CRASH(code) \
|
||||
|
Reference in New Issue
Block a user