mirror of
https://github.com/MariaDB/server.git
synced 2025-11-15 10:16:13 +01:00
change created by: unifdef -DMYSQL_VERSION_ID=100400 -DMARIADB_BASE_VERSION -m storage/spider/spd_* storage/spider/ha_spider.* storage/spider/hs_client/* basically MDEV-27637, MDEV-27641, MDEV-27655
44 lines
710 B
C++
44 lines
710 B
C++
|
|
// vim:sw=2:ai
|
|
|
|
/*
|
|
* Copyright (C) 2010-2011 DeNA Co.,Ltd.. All rights reserved.
|
|
* Copyright (C) 2011-2017 Kentoku SHIBA
|
|
* See COPYRIGHT.txt for details.
|
|
*/
|
|
|
|
#include <my_global.h>
|
|
#include "mysql_version.h"
|
|
#include "sql_priv.h"
|
|
#include "probes_mysql.h"
|
|
|
|
#include "fatal.hpp"
|
|
|
|
namespace dena {
|
|
|
|
/*
|
|
const int opt_syslog = LOG_ERR | LOG_PID | LOG_CONS;
|
|
*/
|
|
|
|
void
|
|
fatal_abort(const String& message)
|
|
{
|
|
fprintf(stderr, "FATAL_COREDUMP: %s\n", message.ptr());
|
|
/*
|
|
syslog(opt_syslog, "FATAL_COREDUMP: %s", message.ptr());
|
|
*/
|
|
abort();
|
|
}
|
|
|
|
void
|
|
fatal_abort(const char *message)
|
|
{
|
|
fprintf(stderr, "FATAL_COREDUMP: %s\n", message);
|
|
/*
|
|
syslog(opt_syslog, "FATAL_COREDUMP: %s", message);
|
|
*/
|
|
abort();
|
|
}
|
|
|
|
};
|
|
|