Add missing COMMIT detection for non-transactional engines
Non-transactional engines will use a query event with a COMMIT in it to signal that the transaction is over.
This commit is contained in:
@ -374,6 +374,13 @@ bool Replicator::Imp::process_one_event(SQL::Event& event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case QUERY_EVENT:
|
case QUERY_EVENT:
|
||||||
|
if (strncasecmp(event->event.query.statement.str, "commit",
|
||||||
|
event->event.query.statement.length) == 0)
|
||||||
|
{
|
||||||
|
commit = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* fallthrough */
|
||||||
case USER_VAR_EVENT:
|
case USER_VAR_EVENT:
|
||||||
if (m_implicit_commit)
|
if (m_implicit_commit)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user