mirror of
https://github.com/MariaDB/server.git
synced 2026-04-19 14:55:32 +02:00
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.
This commit is contained in:
parent
211552ccee
commit
9074307102
4 changed files with 69 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue