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
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

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