You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-12 11:01:17 +03:00
MCOL-1085 Add crash dump to daemons
This patch adds an automated crash dump which logs in /var/log/mariadb/columnstore/trace/ when one of the ColumnStore daemons crashes.
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
#include "IDBPolicy.h"
|
||||
#include "serverMonitor.h"
|
||||
|
||||
#include "crashtrace.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace servermonitor;
|
||||
using namespace oam;
|
||||
@@ -38,6 +40,14 @@ int main (int argc, char** argv)
|
||||
ServerMonitor serverMonitor;
|
||||
Oam oam;
|
||||
|
||||
struct sigaction ign;
|
||||
|
||||
memset(&ign, 0, sizeof(ign));
|
||||
ign.sa_handler = fatalHandler;
|
||||
sigaction(SIGSEGV, &ign, 0);
|
||||
sigaction(SIGABRT, &ign, 0);
|
||||
sigaction(SIGFPE, &ign, 0);
|
||||
|
||||
//Launch Memory Monitor Thread and check if swap is in critical condition
|
||||
pthread_t memoryMonitorThread;
|
||||
pthread_create (&memoryMonitorThread, NULL, (void*(*)(void*)) &memoryMonitor, NULL);
|
||||
|
||||
Reference in New Issue
Block a user