1
0
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:
unknown
2006-02-01 14:00:00 +01:00
parent 520dffb520
commit 9b6c2bc2bf
2 changed files with 161 additions and 10 deletions

View File

@ -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) \