Added synchronous log flushing to disk when a signal is received.

This commit is contained in:
Markus Makela
2014-12-02 13:31:15 +02:00
parent fe7eac0a17
commit 49534f75b5
2 changed files with 5 additions and 0 deletions

View File

@ -3123,6 +3123,7 @@ void flushall_logfiles(bool flush)
*/
void skygw_log_sync_all(void)
{
skygw_log_write(LOGFILE_TRACE,"Starting log flushing to disk.");
flushall_logfiles(true);
skygw_message_send(lm->lm_logmes);
skygw_message_wait(lm->lm_clientmes);