diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2010-10-18 13:24:34 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2010-10-18 13:24:34 +0200 |
commit | 08531533466732294306afe1c216f66a61b929cb (patch) | |
tree | b81669fcdfa828997e9b2170d263924984982b57 /dbug | |
parent | 131e3e38fd301ae9beee898eacfd8d72f7983200 (diff) | |
download | mariadb-git-08531533466732294306afe1c216f66a61b929cb.tar.gz |
Bug#52172 test binlog.binlog_index needs --skip-core-file to avoid leaving core files
For crash testing: kill the server without generating core file.
include/my_dbug.h
Use kill(getpid(), SIGKILL) which cannot be caught by signal handlers.
All DBUG_XXX macros should be no-ops in optimized mode, do that for DBUG_ABORT as well.
sql/handler.cc
Kill server without generating core.
sql/log.cc
Kill server without generating core.
Diffstat (limited to 'dbug')
-rw-r--r-- | dbug/dbug.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c index 76723fa8767..7278acca2a9 100644 --- a/dbug/dbug.c +++ b/dbug/dbug.c @@ -2267,6 +2267,14 @@ static void dbug_flush(CODE_STATE *cs) } /* dbug_flush */ +void _db_flush_() +{ + CODE_STATE *cs; + get_code_state_or_return; + (void) fflush(cs->stack->out_file); +} + + void _db_lock_file_() { CODE_STATE *cs=0; |