MXS-2189: Prevent unwanted trx replay

When a transaction is being executed on a slave and the master fails, the
transaction replay would start.
This commit is contained in:
Markus Mäkelä 2018-11-27 08:11:43 +02:00
parent c372bd8985
commit da83551493
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -920,7 +920,7 @@ void RWSplitSession::handleError(GWBUF* errmsgbuf,
}
}
if (session_trx_is_active(session))
if (session_trx_is_active(session) && m_otrx_state == OTRX_INACTIVE)
{
can_continue = start_trx_replay();
}