Implement first version of HintRouter
The hintrouter is now in principle capable of routing requests to the master or to some slave (in a round robin fashion) based upon hints set by some earlier filter. Note that as the router is completely oblivious of transaction boundaries, using it with transactions and autocommit being off will not make anyone happy. Recognizing transaction boundaries using regexes and then pinning the server until transaction commit would be needed.
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#include <maxscale/cppdefs.hh>
|
||||
#include "hintrouterdefs.hh"
|
||||
#include <maxscale/router.hh>
|
||||
#include "hintroutersession.hh"
|
||||
|
||||
|
Reference in New Issue
Block a user