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

@ -633,7 +633,7 @@ session_dump_statements_t session_get_dump_statements();
* @param session The current Session
* @param down The downstream component, either a filter or a router
* @param buffer The buffer to route
* @param seconds Number of seconds to wait before routing the query
* @param seconds Number of seconds to wait before routing the query. Use 0 for immediate re-routing.
*
* @return True if queuing of the query was successful
*/