
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.
10 lines
226 B
CMake
10 lines
226 B
CMake
add_library(hintrouter SHARED
|
|
hintrouter.cc
|
|
hintroutersession.cc
|
|
dcb.cc
|
|
)
|
|
|
|
target_link_libraries(hintrouter maxscale-common)
|
|
set_target_properties(hintrouter PROPERTIES VERSION "1.0.0")
|
|
install_module(hintrouter core)
|