MXS-1506: Allow immediate query re-routing

Now that the readwritesplit uses the same mechanism for both
retry_failed_reads and delayed query retries, the re-routing function
should accept a delay of 0 seconds. This makes the mechanism more suitable
for other uses e.g. delaying of queries in filters.
This commit is contained in:
Markus Mäkelä
2018-04-05 14:46:08 +03:00
parent 450b31dd8c
commit e1e01c029c
3 changed files with 15 additions and 8 deletions

View File

@ -615,7 +615,7 @@ bool RWSplitSession::handle_error_new_connection(DCB *backend_dcb, GWBUF *errmsg
{
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, 1);
session_delay_routing(session, router_as_downstream(session), stored, 0);
}
else
{