Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a886da98
Commit
a886da98
authored
Feb 04, 2006
by
mikron@c-3009e253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL 2826: Nineth step
Updated error inject scripts
parent
981454b3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
dbug/dbug_long.h
dbug/dbug_long.h
+13
-0
sql/mysql_priv.h
sql/mysql_priv.h
+14
-2
No files found.
dbug/dbug_long.h
View file @
a886da98
...
...
@@ -127,6 +127,11 @@
# define DBUG_SETJMP setjmp
# define DBUG_LONGJMP longjmp
# define DBUG_DUMP(keyword,a1)
# define DBUG_EXECUTE_IF(keyword, a1)
# define DBUG_EXECUTE_COND(keyword, a1) 0
# define DBUG_COND(keyword) 0
# define DBUG_ADD_KEYWORD(key)
# define DBUG_DEL_KEYWORD(key)
# else
# define DBUG_ENTER(a) \
auto char *_db_func_; auto char *_db_file_; auto int _db_level_; \
...
...
@@ -157,4 +162,12 @@
# define DBUG_SETJMP(a1) (_db_setjmp_ (), setjmp (a1))
# define DBUG_LONGJMP(a1,a2) (_db_longjmp_ (), longjmp (a1, a2))
# define DBUG_DUMP(keyword,a1,a2) _db_dump_(__LINE__,keyword,a1,a2)
# define DBUG_EXECUTE_IF(keyword,a1) \
{if (_db_on_) {if (_db_strict_keyword_ (keyword)) { a1 }}}
# define DBUG_EXECUTE_COND(keyword, a1) \
(_db_on_ ? ((_db_strict_keyword_ (keyword)) ? ((a1), 0) : 0) : 0)
# define DBUG_COND(keyword) \
((_db_on_ && _db_strict_keyword_ (keyword)) ? 1 : 0)
# define DBUG_ADD_KEYWORD(key) _db_add_strict_keyword_(key)
# define DBUG_DEL_KEYWORD(key) _db_del_strict_keyword_(key)
# endif
sql/mysql_priv.h
View file @
a886da98
...
...
@@ -622,6 +622,18 @@ struct Query_cache_query_flags
#define SET_ERROR_INJECT_VALUE(x) \
current_thd->error_inject_value= (x)
inline
bool
my_error_inject_name
(
const
char
*
dbug_str
)
{
if
(
_db_on_
&&
_db_strict_keyword_
(
dbug_str
))
{
DBUG_DEL_KEYWORD
(
dbug_str
);
return
1
;
}
return
0
;
}
inline
bool
my_error_inject
(
int
value
)
{
...
...
@@ -637,9 +649,9 @@ my_error_inject(int value)
#define ERROR_INJECT_CRASH(code) \
DBUG_EXECUTE_COND(code, abort();)
#define ERROR_INJECT_ACTION(code, action) \
DBUG_EXECUTE_COND(code, action
)
(my_error_inject_name(code) ? ((action), 0) : 0
)
#define ERROR_INJECT(code) \
DBUG_COND
(code)
my_error_inject_name
(code)
#define ERROR_INJECT_VALUE(value) \
my_error_inject(value)
#define ERROR_INJECT_VALUE_ACTION(value,action) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment