MXS-2187: Allow multiple transaction retries

By resetting the replay state the transaction replay can start again on a
new server. This allows the replay process work when a master server is
shutting down.
This commit is contained in:
Markus Mäkelä
2018-11-26 13:37:10 +02:00
parent e6325d39fb
commit 1abcbd64bd
2 changed files with 20 additions and 3 deletions

View File

@ -163,8 +163,10 @@ public:
* transaction */
bool m_can_replay_trx; /**< Whether the transaction can be replayed */
Trx m_replayed_trx; /**< The transaction we are replaying */
mxs::Buffer m_interrupted_query; /**< Query that was interrupted mid-transaction.
* */
mxs::Buffer m_interrupted_query; /**< Query that was interrupted mid-transaction. */
Trx m_orig_trx; /**< The backup of the transaction we're replaying */
mxs::Buffer m_orig_stmt; /**< The backup of the statement that was interrupted */
otrx_state m_otrx_state = OTRX_INACTIVE; /**< Optimistic trx state*/
private: