From 729acfbb7fa48b0a591a28d449cb266ecc615437 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 10 Jun 2019 22:03:52 +0800 Subject: [PATCH] =?UTF-8?q?tfe=5Fdata=5Frecv=5Fthread=5Fnum=E5=92=8Ckeepal?= =?UTF-8?q?ive=5Freplay=5Fswitch=E4=BD=BF=E7=94=A8=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=8F=82=E6=95=B01.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/kni_entry.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp index 41ea581..ba3e93b 100644 --- a/entry/src/kni_entry.cpp +++ b/entry/src/kni_entry.cpp @@ -1524,21 +1524,13 @@ extern "C" int kni_init(){ KNI_LOG_ERROR(local_logger, "tfe_count is %d, <= 0", tfe_count); goto error_out; } - ret = MESA_load_profile_int_nodef(profile, section, "tfe_data_recv_thread_num", &tfe_data_recv_thread_num); - if(ret < 0){ - KNI_LOG_ERROR(local_logger, "MESA_prof_load: tfe_data_recv_thread_num not set, profile is %s, section is %s", profile, section); - goto error_out; - } + ret = MESA_load_profile_int_def(profile, section, "tfe_data_recv_thread_num", &tfe_data_recv_thread_num, 1); ret = MESA_load_profile_string_nodef(profile, section, "local_eth", local_eth, sizeof(local_eth)); if(ret < 0){ printf("MESA_prof_load: local_eth not set, profile is %s, section is %s", profile, section); goto error_out; } - ret = MESA_load_profile_int_nodef(profile, section, "keepalive_replay_switch", &keepalive_replay_switch); - if(ret < 0){ - printf("MESA_prof_load: keepalive_replay_switch not set, profile is %s, section is %s", profile, section); - goto error_out; - } + ret = MESA_load_profile_int_def(profile, section, "keepalive_replay_switch", &keepalive_replay_switch, 1); KNI_LOG_INFO(local_logger, "MESA_prof_load, [%s]:\n log_path: %s\n log_level: %d\n tfe_count: %d\n" "tfe_data_recv_thread_num: %d\n local_eth: %s\n keepalive_replay_switch: %d", section, log_path, log_level, tfe_count, tfe_data_recv_thread_num, local_eth, keepalive_replay_switch);