Fix log manager race condition
The log manager could send two messages if a log message was posted soon before the log manager was stopped. This caused a debug assertion which then manifested as a deadlock inside the log manager.
This commit is contained in:
@ -436,7 +436,9 @@ bool skygw_thread_set_exitflag(skygw_thread_t* thr, skygw_message_t* sendmes,
|
||||
skygw_message_wait(recmes);
|
||||
}
|
||||
|
||||
ss_dassert(simple_mutex_lock(thr->sth_mutex, true) == 0);
|
||||
ss_dassert(thr->sth_state == THR_STOPPED);
|
||||
ss_dassert(simple_mutex_unlock(thr->sth_mutex) == 0);
|
||||
|
||||
return_succp:
|
||||
return succp;
|
||||
|
||||
Reference in New Issue
Block a user