dcb->state set wheere missing or changed

This commit is contained in:
Massimiliano Pinto
2013-08-27 10:52:43 +02:00
parent d0d68a69ca
commit ff109c6319
2 changed files with 16 additions and 9 deletions

View File

@ -118,8 +118,6 @@ int gw_read_backend_handshake(MySQLProtocol *conn) {
uint8_t *payload = NULL;
if ((n = dcb_read(dcb, &head)) != -1) {
dcb->state = DCB_STATE_PROCESSING;
if (head) {
payload = GWBUF_DATA(head);
@ -134,8 +132,6 @@ int gw_read_backend_handshake(MySQLProtocol *conn) {
// consume all the data here
head = gwbuf_consume(head, gwbuf_length(head));
dcb->state = DCB_STATE_POLLING;
return 0;
}
}
@ -230,7 +226,6 @@ int gw_receive_backend_auth(MySQLProtocol *conn) {
uint8_t *ptr = NULL;
if ((n = dcb_read(dcb, &head)) != -1) {
dcb->state = DCB_STATE_PROCESSING;
if (head) {
ptr = GWBUF_DATA(head);
// check if the auth is SUCCESFUL
@ -246,8 +241,6 @@ int gw_receive_backend_auth(MySQLProtocol *conn) {
}
}
dcb->state = DCB_STATE_POLLING;
return rv;
}