MXS-2592 Add configuration for session specific in-memory log

When enabled each session will write log messages in the in-memory log.
If session ends in error this log is written to the actual log in disk.
This commit is contained in:
Marko
2019-07-24 18:29:58 +03:00
parent b07ffdb2fa
commit 918a2964d5
14 changed files with 176 additions and 16 deletions

View File

@ -432,6 +432,7 @@ static void sigfatal_handler(int i)
if (dcb->session)
{
session_dump_statements(dcb->session);
session_dump_log(dcb->session);
}
}