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:
parent
51d2d6c1f2
commit
bcf26fba3e
@ -374,6 +374,13 @@ bool Replicator::Imp::process_one_event(SQL::Event& event)
|
||||
break;
|
||||
|
||||
case QUERY_EVENT:
|
||||
if (strncasecmp(event->event.query.statement.str, "commit",
|
||||
event->event.query.statement.length) == 0)
|
||||
{
|
||||
commit = true;
|
||||
}
|
||||
|
||||
/* fallthrough */
|
||||
case USER_VAR_EVENT:
|
||||
if (m_implicit_commit)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user