修改packet为空的处理, 日志带上traceid, 增加统计日志, 修改pme释放的逻辑
This commit is contained in:
@@ -240,11 +240,14 @@ MESA_htable_handle kni_create_htable(const char *profile, const char *section, v
|
||||
{
|
||||
__wrapper_MESA_htable_set_opt(htable, MHO_ELIMIMINATE_TYPE, HASH_ELIMINATE_ALGO_FIFO, logger, section);
|
||||
}
|
||||
|
||||
__wrapper_MESA_htable_set_opt(htable, MHO_CBFUN_DATA_FREE,
|
||||
(void *)free_data_cb, sizeof(free_data_cb), logger, section);
|
||||
__wrapper_MESA_htable_set_opt(htable, MHO_CBFUN_DATA_EXPIRE_NOTIFY,
|
||||
if(free_data_cb != NULL){
|
||||
__wrapper_MESA_htable_set_opt(htable, MHO_CBFUN_DATA_FREE,
|
||||
(void *)free_data_cb, sizeof(free_data_cb), logger, section);
|
||||
}
|
||||
if(expire_notify_cb != NULL){
|
||||
__wrapper_MESA_htable_set_opt(htable, MHO_CBFUN_DATA_EXPIRE_NOTIFY,
|
||||
(void *)expire_notify_cb, sizeof(free_data_cb), logger, section);
|
||||
}
|
||||
int ret = MESA_htable_mature(htable);
|
||||
if(unlikely(ret != 0))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user