query_classifier.cc
resolve_query_type, traverse through the list of items of thd->free_list, identify functions and reason query type according to the function type. This phase can only increase the restrictiviness level of the query.
query_classifier.h
Added new query type QUERY_TYPE_LOCAL_READ, for functions that can be executed in Maxscale. This type is the least restrict
ive query type. It is not used currently.
testmain.c
Added a few test cases and fixed expected return values for query type tests.
readwritesplit.c
polish
skygw_debug.h
Added string macro for Item types.
This commit is contained in:
@ -492,8 +492,8 @@ static int routeQuery(
|
||||
|
||||
case QUERY_TYPE_READ:
|
||||
skygw_log_write(LOGFILE_TRACE,
|
||||
"%lu [routeQuery:rwsplit] Query type\t%s, routing "
|
||||
"to Slave.",
|
||||
"%lu [routeQuery:rwsplit] Query type\t%s, "
|
||||
"routing to Slave.",
|
||||
pthread_self(),
|
||||
STRQTYPE(qtype));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user