MXS-2196: Fix DCB session check

The check was missing the special case of persistent connections.
This commit is contained in:
Markus Mäkelä
2018-12-05 14:37:41 +02:00
parent 20fe9b9dca
commit ae62cf6eb6

View File

@ -2888,7 +2888,7 @@ void poll_fake_hangup_event(DCB* dcb)
*/ */
static bool dcb_session_check(DCB* dcb, const char* function) static bool dcb_session_check(DCB* dcb, const char* function)
{ {
if (dcb->session) if (dcb->session || dcb->persistentstart)
{ {
return true; return true;
} }