Clean up bits and pieces, removed some unnecessary checks.
This commit is contained in:
@ -1210,6 +1210,8 @@ bool is_drop_table_query(GWBUF* querybuf)
|
||||
lex->sql_command == SQLCOM_DROP_TABLE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline void add_str(char** buf, int* buflen, int* bufsize, char* str)
|
||||
{
|
||||
int isize = strlen(str) + 1;
|
||||
@ -1577,6 +1579,8 @@ char* skygw_get_qtype_str(
|
||||
}
|
||||
return qtype_str;
|
||||
}
|
||||
|
||||
|
||||
skygw_query_op_t query_classifier_get_operation(GWBUF* querybuf)
|
||||
{
|
||||
LEX* lex = get_lex(querybuf);
|
||||
|
@ -3611,7 +3611,7 @@ static GWBUF* sescmd_cursor_process_replies(
|
||||
bref_clear_state(bref, BREF_WAITING_RESULT);
|
||||
}
|
||||
/** Response is in the buffer and it will be sent to client. */
|
||||
else if (replybuf != NULL)
|
||||
else
|
||||
{
|
||||
/** Mark the rest session commands as replied */
|
||||
scmd->my_sescmd_is_replied = true;
|
||||
|
Reference in New Issue
Block a user