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:
Johan Wikman
2019-04-16 13:26:52 +03:00
parent b9e6384a41
commit 524a083203
3 changed files with 25 additions and 34 deletions

View File

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