Fix negative expected response count on trx rollback

The expected reply count should only be decremented on success.
This commit is contained in:
Markus Mäkelä 2019-08-14 14:19:47 +03:00
parent b6ee5d104d
commit 16cc3cd64b
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -606,7 +606,6 @@ bool RWSplitSession::handle_ignorable_error(RWBackend* backend)
mxb_assert(m_expected_responses > 0);
bool ok = false;
m_expected_responses--;
MXS_INFO("%s: %s", backend->error().is_rollback() ?
"Server triggered transaction rollback, replaying transaction" :
@ -636,6 +635,7 @@ bool RWSplitSession::handle_ignorable_error(RWBackend* backend)
if (ok)
{
m_expected_responses--;
session_reset_server_bookkeeping(m_pSession);
}