Dump statements on fatal signal
This should make it easier to figure out what is going on at the time of the crash if statement collection is enabled.
This commit is contained in:
parent
e3b1eebb15
commit
146b940245
@ -427,6 +427,14 @@ static void sigfatal_handler(int i)
|
||||
cnf->sysname,
|
||||
cnf->release_string);
|
||||
|
||||
if (DCB* dcb = dcb_get_current())
|
||||
{
|
||||
if (dcb->session)
|
||||
{
|
||||
session_dump_statements(dcb->session);
|
||||
}
|
||||
}
|
||||
|
||||
auto cb = [](const char* symbol, const char* cmd) {
|
||||
MXS_ALERT(" %s: %s", symbol, cmd);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user