Completing fix to #438
This commit is contained in:
@ -282,7 +282,8 @@ static int gw_read_backend_event(DCB *dcb) {
|
|||||||
} /* switch */
|
} /* switch */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (backend_protocol->state == MYSQL_AUTH_FAILED) {
|
if (backend_protocol->state == MYSQL_AUTH_FAILED)
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* protocol state won't change anymore,
|
* protocol state won't change anymore,
|
||||||
* lock can be freed
|
* lock can be freed
|
||||||
@ -333,7 +334,7 @@ static int gw_read_backend_event(DCB *dcb) {
|
|||||||
|
|
||||||
if (session->state == SESSION_STATE_STOPPING)
|
if (session->state == SESSION_STATE_STOPPING)
|
||||||
{
|
{
|
||||||
goto return_with_lock;
|
goto return_rc;
|
||||||
}
|
}
|
||||||
spinlock_acquire(&session->ses_lock);
|
spinlock_acquire(&session->ses_lock);
|
||||||
session->state = SESSION_STATE_STOPPING;
|
session->state = SESSION_STATE_STOPPING;
|
||||||
|
|||||||
Reference in New Issue
Block a user