summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2010-10-18 13:24:34 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2010-10-18 13:24:34 +0200
commit9074307102644d43b934ce52cc0661890098698b (patch)
treeb81669fcdfa828997e9b2170d263924984982b57 /dbug
parent211552ccee98e381a14dfaae754528d9f6ed0494 (diff)
downloadmariadb-git-9074307102644d43b934ce52cc0661890098698b.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.c8
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;