Small fix to readwritesplit session command handling.
This commit is contained in:
@ -4049,12 +4049,11 @@ static bool execute_sescmd_in_backend(
|
|||||||
sescmd_cursor_set_active(scur, true);
|
sescmd_cursor_set_active(scur, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = sescmd_cursor_clone_querybuf(scur);
|
|
||||||
|
|
||||||
switch (scur->scmd_cur_cmd->my_sescmd_packet_type) {
|
switch (scur->scmd_cur_cmd->my_sescmd_packet_type) {
|
||||||
case MYSQL_COM_CHANGE_USER:
|
case MYSQL_COM_CHANGE_USER:
|
||||||
/** This makes it possible to handle replies correctly */
|
/** This makes it possible to handle replies correctly */
|
||||||
gwbuf_set_type(scur->scmd_cur_cmd->my_sescmd_buf, GWBUF_TYPE_SESCMD);
|
gwbuf_set_type(scur->scmd_cur_cmd->my_sescmd_buf, GWBUF_TYPE_SESCMD);
|
||||||
|
buf = sescmd_cursor_clone_querybuf(scur);
|
||||||
rc = dcb->func.auth(
|
rc = dcb->func.auth(
|
||||||
dcb,
|
dcb,
|
||||||
NULL,
|
NULL,
|
||||||
@ -4087,6 +4086,7 @@ static bool execute_sescmd_in_backend(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
gwbuf_set_type(scur->scmd_cur_cmd->my_sescmd_buf, GWBUF_TYPE_SESCMD);
|
gwbuf_set_type(scur->scmd_cur_cmd->my_sescmd_buf, GWBUF_TYPE_SESCMD);
|
||||||
|
buf = sescmd_cursor_clone_querybuf(scur);
|
||||||
rc = dcb->func.write(
|
rc = dcb->func.write(
|
||||||
dcb,
|
dcb,
|
||||||
buf);
|
buf);
|
||||||
|
Reference in New Issue
Block a user