Introduce MySQL-embedded based query classifier plugin.
Currently not used, but the existing query_classifier will be changed into being just a wrapper around a dynamically loaded query classifier plugin, i.e. qc_mysqlembedded.
This commit is contained in:
parent
d6840cd16a
commit
5e8ba4b519
@ -5,6 +5,9 @@ set_target_properties(query_classifier PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(query_classifier PROPERTIES LINK_FLAGS -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/query_classifier.map)
|
||||
#set_target_properties(query_classifier PROPERTIES LINK_FLAGS -Wl,-z,defs)
|
||||
install(TARGETS query_classifier COMPONENT lib DESTINATION ${MAXSCALE_LIBDIR})
|
||||
|
||||
add_subdirectory(qc_mysqlembedded)
|
||||
|
||||
if(BUILD_TESTS)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
7
query_classifier/qc_mysqlembedded/CMakeLists.txt
Normal file
7
query_classifier/qc_mysqlembedded/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
add_library(qc_mysqlembedded SHARED qc_mysqlembedded.cc)
|
||||
|
||||
target_link_libraries(qc_mysqlembedded ${EMBEDDED_LIB} aio crypt crypto dl m ${PCRE_LINK_FLAGS} ssl stdc++ z)
|
||||
set_target_properties(qc_mysqlembedded PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(qc_mysqlembedded PROPERTIES LINK_FLAGS -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/qc_mysqlembedded.map)
|
||||
#set_target_properties(qc_mysqlembedded PROPERTIES LINK_FLAGS -Wl,-z,defs)
|
||||
install(TARGETS qc_mysqlembedded COMPONENT lib DESTINATION ${MAXSCALE_LIBDIR})
|
1865
query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc
Normal file
1865
query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc
Normal file
File diff suppressed because it is too large
Load Diff
9
query_classifier/qc_mysqlembedded/qc_mysqlembedded.map
Normal file
9
query_classifier/qc_mysqlembedded/qc_mysqlembedded.map
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
global:
|
||||
info;
|
||||
version;
|
||||
GetModuleInfo;
|
||||
ModuleInit;
|
||||
local:
|
||||
*;
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user