MXS-1507: Add transaction replay statistics

Added a simple counter for the number of replayed transactions.
This commit is contained in:
Markus Mäkelä
2018-05-02 09:09:32 +03:00
parent 8a52478afa
commit ff8a7c8b93
3 changed files with 13 additions and 7 deletions

View File

@ -380,6 +380,7 @@ void RWSplitSession::handle_trx_replay()
{
// No more statements to execute
m_is_replay_active = false;
atomic_add_uint64(&m_router->stats().n_trx_replay, 1);
// Check that the checksums match.
SHA1Checksum chksum = m_trx.checksum();