MXS-2439 Do not classify implicit commits as commits
The type mask of CREATE, ALTER, etc. that cause an implicit commit will no longer contain the bit QUERY_TYPE_COMMIT. As an implicit commit does not change the transaction state as seen by MaxScale, it does not make sense to claim that the statement is a commit.
This commit is contained in:
@ -774,9 +774,8 @@ static uint32_t resolve_query_type(parsing_info_t* pi, THD* thd)
|
||||
if (set_autocommit_stmt == 1)
|
||||
{
|
||||
type |= QUERY_TYPE_ENABLE_AUTOCOMMIT;
|
||||
type |= QUERY_TYPE_COMMIT;
|
||||
}
|
||||
|
||||
type |= QUERY_TYPE_COMMIT;
|
||||
}
|
||||
|
||||
if (set_autocommit_stmt == 0)
|
||||
|
||||
Reference in New Issue
Block a user