mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
cleanup: reduce error injection noise in partitioning
This commit is contained in:
@ -20,10 +20,9 @@
|
||||
#include <my_sys.h> // pthread_mutex_t
|
||||
#include "m_string.h" // LEX_CUSTRING
|
||||
|
||||
#define ERROR_INJECT_CRASH(code) \
|
||||
(DBUG_IF(code) && (DBUG_SUICIDE(), false))
|
||||
#define ERROR_INJECT_ERROR(code) \
|
||||
(DBUG_IF(code) && (my_error(ER_UNKNOWN_ERROR, MYF(0)), 1))
|
||||
#define ERROR_INJECT(code) \
|
||||
((DBUG_IF("crash_" code) && (DBUG_SUICIDE(), 0)) || \
|
||||
(DBUG_IF("fail_" code) && (my_error(ER_UNKNOWN_ERROR, MYF(0)), 1)))
|
||||
|
||||
class Alter_info;
|
||||
class Alter_table_ctx;
|
||||
|
Reference in New Issue
Block a user