dcb->state set wheere missing or changed
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user