Fix transaction migration
The transaction migration in the case of a changed master never worked as transaction replay would only be triggered when the master fails. To cover this case, the transaction replay just needs to be started when the need for a transaction migration is detected. To help diagnose the behavior, the Trx class no longer logs a message when a transaction is closed. This is now done by readwritesplit which has more knowledge of the context in which the transaction is closed.
This commit is contained in:
@ -601,6 +601,7 @@ void RWSplitSession::clientReply(GWBUF *writebuf, DCB *backend_dcb)
|
||||
}
|
||||
else if (m_config->transaction_replay && session_trx_is_ending(m_client->session))
|
||||
{
|
||||
MXS_INFO("Transaction complete");
|
||||
m_trx.close();
|
||||
m_can_replay_trx = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user