MXS-1507: Use same mechanism for all delayed routing

Passing the delay to the retry_query function allows the same function to
be used in all cases. This removes duplicate code.
This commit is contained in:
Markus Mäkelä
2018-04-19 15:25:14 +03:00
parent 92e0b944a9
commit daecb6980b
3 changed files with 4 additions and 5 deletions

View File

@ -641,8 +641,7 @@ bool RWSplitSession::handle_error_new_connection(DCB *backend_dcb, GWBUF *errmsg
if (stored && m_config.retry_failed_reads)
{
MXS_INFO("Re-routing failed read after server '%s' failed", backend->name());
MXS_SESSION* session = m_client->session;
session_delay_routing(session, router_as_downstream(session), stored, 0);
retry_query(stored, 0);
}
else
{