Rename misleading function

The expecting resultset function does not expect a resultset but a text
protocol result.
This commit is contained in:
Markus Mäkelä 2018-09-11 08:07:22 +03:00
parent e15b0e2147
commit d7b7f43efb
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -640,7 +640,7 @@ static inline bool session_ok_to_route(DCB *dcb)
return rval;
}
static inline bool expecting_resultset(MySQLProtocol *proto)
static inline bool expecting_text_result(MySQLProtocol *proto)
{
return proto->current_command == MXS_COM_QUERY ||
proto->current_command == MXS_COM_STMT_FETCH;
@ -818,7 +818,7 @@ gw_read_and_write(DCB *dcb)
if (collecting_resultset(proto, capabilities))
{
if (expecting_resultset(proto))
if (expecting_text_result(proto))
{
if (mxs_mysql_is_result_set(read_buffer))
{