summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
author崔一鸣 <[email protected]>2019-06-17 20:52:22 +0800
committer崔一鸣 <[email protected]>2019-06-17 20:52:22 +0800
commit0da2c833fe14a9c2e58ea631a9b00835792a58a4 (patch)
treeef20ac5bc7e34107a754da480000edb516844d3e /common
parenta03bebbfb95423c17b1ffbe29605eb64d7c5ef0c (diff)
增加和tfe之间的保活
Diffstat (limited to 'common')
-rw-r--r--common/include/kni_utils.h3
-rw-r--r--common/src/kni_utils.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/common/include/kni_utils.h b/common/include/kni_utils.h
index 46f4b15..f7dc52f 100644
--- a/common/include/kni_utils.h
+++ b/common/include/kni_utils.h
@@ -3,8 +3,9 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
-#include <pthread.h>
+#include <errno.h>
#include <unistd.h>
+#include <pthread.h>
#include <arpa/inet.h>
#include <time.h>
#include "MESA/MESA_handle_logger.h"
diff --git a/common/src/kni_utils.cpp b/common/src/kni_utils.cpp
index a9f9f22..b3c05db 100644
--- a/common/src/kni_utils.cpp
+++ b/common/src/kni_utils.cpp
@@ -266,7 +266,7 @@ MESA_htable_handle kni_create_htable(const char *profile, const char *section, v
MESA_load_profile_int_def(profile, section, "mho_hash_max_element_num", &mho_hash_max_element_num, 12345);
MESA_load_profile_int_def(profile, section, "mho_expire_time", &mho_expire_time, 3600);
MESA_load_profile_string_def(profile, section, "mho_eliminate_type", mho_eliminate_type, sizeof(mho_eliminate_type), "FIFO");
- KNI_LOG_INFO(logger, "MESA_prof_load, [%s]:\n mho_screen_print_ctrl: %d\n mho_thread_safe: %d\n mho_mutex_num: %d\n"
+ KNI_LOG_ERROR(logger, "MESA_prof_load, [%s]:\n mho_screen_print_ctrl: %d\n mho_thread_safe: %d\n mho_mutex_num: %d\n"
"mho_hash_slot_size: %d\n mho_hash_max_element_num: %d\n mho_expire_time: %d\n mho_eliminate_type: %s\n", section,
mho_screen_print_ctrl, mho_thread_safe, mho_mutex_num, mho_hash_slot_size, mho_hash_max_element_num, mho_expire_time, mho_eliminate_type);
MESA_htable_handle htable = MESA_htable_born();