Fixed some compiler warnings, added header includes, return values etc.
This commit is contained in:
VilhoRaatikka
2014-05-27 10:08:17 +03:00
parent d6f0f936ec
commit 70115d35c9
8 changed files with 15 additions and 6 deletions

View File

@ -283,6 +283,11 @@ static int gw_read_backend_event(DCB *dcb) {
}
if (backend_protocol->state == MYSQL_AUTH_FAILED) {
/**
* protocol state won't change anymore,
* lock can be freed
*/
spinlock_release(&dcb->authlock);
spinlock_acquire(&dcb->delayqlock);
/*<
* vraa : errorHandle
@ -351,7 +356,7 @@ static int gw_read_backend_event(DCB *dcb) {
/* close router_session */
router->closeSession(router_instance, rsession);
rc = 1;
goto return_with_lock;
goto return_rc;
}
else
{