Fixed luafilter build failures
The luafilter referred to the old session client DCB name and linked against log_manager and utils but not maxscale-common.
This commit is contained in:
parent
3973ba36be
commit
fd34cd4014
@ -41,7 +41,7 @@ if(BUILD_LUAFILTER)
|
||||
if(LUA_FOUND)
|
||||
include_directories(${LUA_INCLUDE_DIR})
|
||||
add_library(luafilter SHARED luafilter.c)
|
||||
target_link_libraries(luafilter log_manager utils ${LUA_LIBRARIES})
|
||||
target_link_libraries(luafilter maxscale-common ${LUA_LIBRARIES})
|
||||
install(TARGETS luafilter DESTINATION ${MAXSCALE_LIBDIR})
|
||||
else()
|
||||
message(STATUS "Lua was not found, luafilter will not be built.")
|
||||
|
@ -461,7 +461,7 @@ static int routeQuery(FILTER *instance, void *session, GWBUF *queue)
|
||||
{
|
||||
LUA_SESSION *my_session = (LUA_SESSION *) session;
|
||||
LUA_INSTANCE *my_instance = (LUA_INSTANCE *) instance;
|
||||
DCB* dcb = my_session->session->client;
|
||||
DCB* dcb = my_session->session->client_dcb;
|
||||
char *fullquery = NULL, *ptr;
|
||||
bool route = true;
|
||||
GWBUF* forward = queue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user