Clean up bits and pieces, removed some unnecessary checks.

This commit is contained in:
VilhoRaatikka
2015-01-14 14:11:19 +02:00
parent df2297aa6c
commit b3824a1eaf
4 changed files with 31 additions and 27 deletions

View File

@ -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);

View File

@ -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;