1、支持配置超时;2、支持plugin配置;3、支持标签查询;4、支持通过redis获取全局序列号;

This commit is contained in:
zhengchao
2017-07-06 21:20:24 +08:00
parent 1936dd60f2
commit 3571096bb6
7 changed files with 390 additions and 171 deletions

View File

@@ -376,6 +376,8 @@ struct _Maat_feather_t
char redis_ip[MAX_TABLE_NAME_LEN];
int redis_port;
int redis_index;
int AUTO_NUMBERING_ON;
struct timeval connect_timeout;
redisContext *redis_read_ctx;
redisContext *redis_write_ctx; // not thread safe.
@@ -383,7 +385,7 @@ struct _Maat_feather_t
int cmd_q_cnt;
struct _Maat_cmd_inner_t* cmd_qhead, *cmd_qtail;
pthread_mutex_t redis_write_lock; //protect redis_write_ctx
long long base_rgn_seq,base_grp_seq;
long long base_rgn_seq,base_grp_seq,server_time;
//for stat>>>>
screen_stat_handle_t stat_handle;
int total_stat_id;