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:
@ -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();
|
can_continue = start_trx_replay();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user