Rename misleading function
The expecting resultset function does not expect a resultset but a text protocol result.
This commit is contained in:
@ -640,7 +640,7 @@ static inline bool session_ok_to_route(DCB *dcb)
|
|||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool expecting_resultset(MySQLProtocol *proto)
|
static inline bool expecting_text_result(MySQLProtocol *proto)
|
||||||
{
|
{
|
||||||
return proto->current_command == MXS_COM_QUERY ||
|
return proto->current_command == MXS_COM_QUERY ||
|
||||||
proto->current_command == MXS_COM_STMT_FETCH;
|
proto->current_command == MXS_COM_STMT_FETCH;
|
||||||
@ -818,7 +818,7 @@ gw_read_and_write(DCB *dcb)
|
|||||||
|
|
||||||
if (collecting_resultset(proto, capabilities))
|
if (collecting_resultset(proto, capabilities))
|
||||||
{
|
{
|
||||||
if (expecting_resultset(proto))
|
if (expecting_text_result(proto))
|
||||||
{
|
{
|
||||||
if (mxs_mysql_is_result_set(read_buffer))
|
if (mxs_mysql_is_result_set(read_buffer))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user