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:
Johan Wikman
2017-03-06 09:55:06 +02:00
parent 9dbabb666a
commit 7165b4306f
8 changed files with 446 additions and 12 deletions

View File

@ -12,7 +12,7 @@
* Public License.
*/
#include <maxscale/cppdefs.hh>
#include "hintrouterdefs.hh"
#include <maxscale/router.hh>
#include "hintroutersession.hh"