Adapt session timeout checks to a per thread model

Each thread will now check their own list of DCBs for timed out sessions.
This commit is contained in:
Markus Makela
2016-11-20 10:34:37 +02:00
parent 30927455ef
commit 5067f3594a
6 changed files with 47 additions and 66 deletions

View File

@ -752,10 +752,7 @@ poll_waitevents(void *arg)
MXS_FREE(tmp);
}
if (check_timeouts && hkheartbeat >= next_timeout_check)
{
process_idle_sessions();
}
dcb_process_idle_sessions(thread_id);
if (thread_data)
{