Remove faulty debug assertion

The use of the server state is not transactional across multiple uses of
the function. This means that any assertions on the target state can fail
if the monitor updates the state between target selection and the
assertion.
This commit is contained in:
Markus Mäkelä 2020-02-11 10:09:25 +02:00
parent c18f9c6bd7
commit fd875cbf6d
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -934,7 +934,6 @@ SRWBackend RWSplitSession::handle_slave_is_target(uint8_t cmd, uint32_t stmt_id)
{
mxb::atomic::add(&m_router->stats().n_slave, 1, mxb::atomic::RELAXED);
m_server_stats[target->server()].read++;
mxb_assert(target->in_use() || target->can_connect());
}
else
{