Files
MaxScale/server/modules/routing/smartrouter/CMakeLists.txt
Niclas Antti 1241300494 MXS-2555 Simple Smart Router
Does the measurments, usage of the same  and persistence to file.
Kill is not implemented, so waits for all clusters to fully responds

The performance data uses a mutex and the persistence data file
is written while holding the mutex. This obviously needs to be
improved, but this commit shows the working concept.
2019-06-19 15:31:34 +03:00

10 lines
262 B
CMake

add_library(smartrouter SHARED
smartrouter.cc
smartsession.cc
performance.cc
)
target_link_libraries(smartrouter maxscale-common mysqlcommon)
set_target_properties(smartrouter PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
install_module(smartrouter core)