Add delayed query retry prototype

This is a proof-of-concept that validates the query retrying method. The
actual implementation of the query retrying mechanism needs more thought
as using the housekeeper is not very efficient.
This commit is contained in:
Markus Mäkelä
2018-04-01 13:27:30 +03:00
parent e76b00e340
commit 761fda2806
7 changed files with 140 additions and 4 deletions

View File

@ -673,4 +673,16 @@ void session_set_dump_statements(session_dump_statements_t value);
*/
session_dump_statements_t session_get_dump_statements();
/**
* @brief Route the query again after a delay
*
* @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
*
* @return True if queuing of the query was successful
*/
bool session_delay_routing(MXS_SESSION* session, MXS_DOWNSTREAM down, GWBUF* buffer, int seconds);
MXS_END_DECLS