Move private type to implementation.
parsing_info_t is only used by the query_classifier implementation. No need to keep it public.
This commit is contained in:
@ -61,6 +61,19 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
typedef struct parsing_info_st
|
||||||
|
{
|
||||||
|
#if defined(SS_DEBUG)
|
||||||
|
skygw_chk_t pi_chk_top;
|
||||||
|
#endif
|
||||||
|
void* pi_handle; /*< parsing info object pointer */
|
||||||
|
char* pi_query_plain_str; /*< query as plain string */
|
||||||
|
void (*pi_done_fp)(void *); /*< clean-up function for parsing info */
|
||||||
|
#if defined(SS_DEBUG)
|
||||||
|
skygw_chk_t pi_chk_tail;
|
||||||
|
#endif
|
||||||
|
} parsing_info_t;
|
||||||
|
|
||||||
#define QTYPE_LESS_RESTRICTIVE_THAN_WRITE(t) (t<QUERY_TYPE_WRITE ? true : false)
|
#define QTYPE_LESS_RESTRICTIVE_THAN_WRITE(t) (t<QUERY_TYPE_WRITE ? true : false)
|
||||||
|
|
||||||
static THD* get_or_create_thd_for_parsing(MYSQL* mysql, char* query_str);
|
static THD* get_or_create_thd_for_parsing(MYSQL* mysql, char* query_str);
|
||||||
|
@ -81,20 +81,6 @@ typedef enum
|
|||||||
QUERY_OP_LOAD = (1 << 12)
|
QUERY_OP_LOAD = (1 << 12)
|
||||||
} qc_query_op_t;
|
} qc_query_op_t;
|
||||||
|
|
||||||
typedef struct parsing_info_st
|
|
||||||
{
|
|
||||||
#if defined(SS_DEBUG)
|
|
||||||
skygw_chk_t pi_chk_top;
|
|
||||||
#endif
|
|
||||||
void* pi_handle; /*< parsing info object pointer */
|
|
||||||
char* pi_query_plain_str; /*< query as plain string */
|
|
||||||
void (*pi_done_fp)(void *); /*< clean-up function for parsing info */
|
|
||||||
#if defined(SS_DEBUG)
|
|
||||||
skygw_chk_t pi_chk_tail;
|
|
||||||
#endif
|
|
||||||
} parsing_info_t;
|
|
||||||
|
|
||||||
|
|
||||||
#define QUERY_IS_TYPE(mask,type) ((mask & type) == type)
|
#define QUERY_IS_TYPE(mask,type) ((mask & type) == type)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user