MXS-2456: Cap transaction replay attempts
In most cases it is reasonable to stop attempting transaction replays after a certain number of failed attempts. This prevents transactions from being repeatedly replayed on the same server over and over again if, for example, it keeps crashing.
This commit is contained in:
@ -343,6 +343,7 @@ private:
|
||||
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 */
|
||||
int64_t m_num_trx_replays = 0; /**< How many times trx replay has been attempted */
|
||||
|
||||
otrx_state m_otrx_state = OTRX_INACTIVE; /**< Optimistic trx state*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user