packet manager support output fieldstat
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#include "session_manager_stat.h"
|
||||
#include "fieldstat/fieldstat_easy.h"
|
||||
|
||||
#define SYNC_STAT_INTERVAL_MS 1000
|
||||
#define CLEAN_SESSION_BURST 1024
|
||||
#define SESSION_MANAGER_MODULE_NAME "session_manager_module"
|
||||
|
||||
@@ -516,16 +515,6 @@ void session_manager_clean(struct session_manager *sess_mgr, uint16_t thread_id)
|
||||
mq_runtime_dispatch(mq_rte);
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
// flush stat before free
|
||||
for (int i = 0; i < SESS_MGR_STAT_MAX; i++)
|
||||
{
|
||||
uint64_t val = session_manager_stat_get(stat, i);
|
||||
fieldstat_easy_counter_set(sess_mgr->fs, thread_id, sess_mgr->stat_idx[i], NULL, 0, val);
|
||||
}
|
||||
|
||||
>>>>>>> 29ffae8 (packet IO support output fieldstat)
|
||||
session_manager_rte_free(sess_mgr->rte[thread_id]);
|
||||
sess_mgr->rte[thread_id] = NULL;
|
||||
}
|
||||
@@ -550,16 +539,12 @@ struct stellar_module *session_manager_on_init(struct stellar_module_manager *mo
|
||||
assert(mod_mgr);
|
||||
struct packet_manager *pkt_mgr = stellar_module_get_packet_manager(mod_mgr);
|
||||
assert(pkt_mgr);
|
||||
struct mq_schema *mq_schema = stellar_module_manager_get_mq_schema(mod_mgr);
|
||||
assert(mq_schema);
|
||||
struct mq_schema *mq_sche = stellar_module_manager_get_mq_schema(mod_mgr);
|
||||
assert(mq_sche);
|
||||
const char *toml_file = stellar_module_manager_get_toml_path(mod_mgr);
|
||||
assert(toml_file);
|
||||
|
||||
<<<<<<< HEAD
|
||||
struct session_manager *sess_mgr = session_manager_new(mod_mgr, pkt_mgr, mq_schema, toml_file);
|
||||
=======
|
||||
struct session_manager *sess_mgr = session_manager_new(pkt_mgr, mq_sche, toml_file);
|
||||
>>>>>>> 6e4d813 (bugfix sess)
|
||||
if (sess_mgr == NULL)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user