修复回调类配置注册线程不安全问题:若注册时恰好有配置更新,将产生无start的update callback。该问题由刘学利在线发现。

This commit is contained in:
zhengchao
2017-01-03 09:38:10 +08:00
parent c52c998343
commit 9ee4a7a5ea
3 changed files with 8 additions and 9 deletions

View File

@@ -221,7 +221,6 @@ struct _plugin_table_info
int acc_line_num;
int update_type;
long cache_size;
pthread_mutex_t plugin_mutex;
};
struct _region_stat_t
{
@@ -372,6 +371,7 @@ struct _Maat_feather_t
char stat_file[MAX_TABLE_NAME_LEN];
char instance_name[MAX_TABLE_NAME_LEN];
char table_info_fn[MAX_TABLE_NAME_LEN];
pthread_mutex_t plugin_table_reg_mutex;
//for stat>>>>
screen_stat_handle_t stat_handle;
int total_stat_id;