From 89c51cff208fe3888e57a485a57b3dc3c1d52987 Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Wed, 28 May 2014 14:36:53 +0300 Subject: [PATCH] Completing fix to #438 --- server/modules/protocol/mysql_backend.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/modules/protocol/mysql_backend.c b/server/modules/protocol/mysql_backend.c index fff9a2604..9fe9f72ae 100644 --- a/server/modules/protocol/mysql_backend.c +++ b/server/modules/protocol/mysql_backend.c @@ -282,7 +282,8 @@ static int gw_read_backend_event(DCB *dcb) { } /* switch */ } - if (backend_protocol->state == MYSQL_AUTH_FAILED) { + if (backend_protocol->state == MYSQL_AUTH_FAILED) + { /** * protocol state won't change anymore, * lock can be freed @@ -333,7 +334,7 @@ static int gw_read_backend_event(DCB *dcb) { if (session->state == SESSION_STATE_STOPPING) { - goto return_with_lock; + goto return_rc; } spinlock_acquire(&session->ses_lock); session->state = SESSION_STATE_STOPPING;