Fix negative expected response count on trx rollback
The expected reply count should only be decremented on success.
This commit is contained in:
parent
b6ee5d104d
commit
16cc3cd64b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user