修复回调类配置注册线程不安全问题:若注册时恰好有配置更新,将产生无start的update callback。该问题由刘学利在线发现。
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user