Add read retry assertion

The retrying of a read on a slave should only be done when the failing
server is waiting for a result and it was the last server from which a
result was expected.
This commit is contained in:
Markus Mäkelä
2019-05-31 08:03:21 +03:00
parent 625740e69d
commit cb089f69e6

View File

@ -1084,6 +1084,7 @@ bool RWSplitSession::handle_error_new_connection(DCB* backend_dcb, GWBUF* errmsg
if (stored && m_config.retry_failed_reads)
{
mxb_assert(m_expected_responses == 0);
MXS_INFO("Re-routing failed read after server '%s' failed", backend->name());
retry_query(stored, 0);
}