支持最多8个不同的表名共用一个表ID,实现一次扫描多个表。

This commit is contained in:
zhengchao
2016-08-30 10:40:05 +08:00
parent 604a684910
commit 86832693d6
4 changed files with 106 additions and 46 deletions

View File

@@ -35,6 +35,7 @@ typedef int atomic_t;
#define FALSE 0
#define MAX_TABLE_NUM 256
#define MAX_CONJUNCTION_TABLE_NUM 8
#define MAX_CHARSET_NUM 16
#define MAX_TABLE_NAME_LEN 256
#define MAX_TABLE_LINE_SIZE (1024*4)
@@ -221,7 +222,9 @@ struct _plugin_table_info
struct _Maat_table_info_t
{
unsigned short table_id;
char table_name[MAX_TABLE_NAME_LEN];
unsigned short conj_cnt;
unsigned short updating_name;
char table_name[MAX_CONJUNCTION_TABLE_NUM][MAX_TABLE_NAME_LEN];
enum MAAT_TABLE_TYPE table_type;
enum MAAT_CHARSET src_charset;
enum MAAT_CHARSET dst_charset[MAX_CHARSET_NUM];