Commit Graph

231 Commits (3e4ddce4a2884f6f75e2d0bf2897f0faafb0022e)

Author SHA1 Message Date
YuQing f72295e103 use fc_queue_try_pop_to_queue from libfastcommon 2021-06-01 17:09:57 +08:00
YuQing c1f6fb797b change macro SF_G_BASE_PATH to SF_G_BASE_PATH_STR 2021-05-27 07:58:26 +08:00
YuQing 5befb9d616 add function sf_set_global_base_path 2021-05-25 18:48:33 +08:00
YuQing 561b7c8d7c upgrade version to V1.1.8 2021-05-25 18:32:08 +08:00
YuQing 02eaad6a89 check required argument 2021-05-20 16:49:53 +08:00
YuQing af7b8010f8 correct type from bool to int :( 2021-05-24 21:11:56 +08:00
YuQing c701e4b1c3 correct macro define: sf_parse_daemon_mode_and_action 2021-05-24 20:53:33 +08:00
YuQing 667fd14abb parse cmd options strictly 2021-05-24 20:33:56 +08:00
YuQing d5fb83a140 change -n to -N for option --no-daemon 2021-05-24 14:40:06 +08:00
YuQing c841d6c1b0 change default values 2021-05-23 21:36:43 +08:00
YuQing 662e2036f6 add function sf_load_cluster_config_by_file 2021-05-22 17:12:27 +08:00
YuQing 4d1ef0ba1a add function sf_parse_cmd_option_bool 2021-05-20 09:55:02 +08:00
YuQing 89cef5e19d sf_usage support print other options 2021-05-19 11:50:09 +08:00
YuQing 808984bf1b sf_parse_daemon_mode_and_action enhancement 2021-05-14 16:57:38 +08:00
YuQing e93f6aa506 set max_pkg_size correctly
output size parameters more gracefully
2021-05-11 12:11:37 +08:00
YuQing e3a37b4e41 Merge branch 'config_simplify' 2021-05-10 20:29:36 +08:00
YuQing 01c2beed8a do NOT set thread name in main thread 2021-04-30 15:04:40 +08:00
YuQing 592fb2b866 sf_binlog_writer: change thread name for unity 2021-04-30 10:13:08 +08:00
YuQing eea7adde7c set thread name as necessary 2021-04-29 21:33:05 +08:00
YuQing 7d5e5d2340 merge cluster.conf and servers.conf 2021-04-28 20:25:55 +08:00
YuQing 03b6d7b20a change output of sf_log_network_error_ex1 2021-04-24 18:11:33 +08:00
YuQing 0d79aaf870 add macro SF_SESSION_ERROR_NOT_EXIST 2021-04-20 10:15:56 +08:00
YuQing 94bcf26518 bugfixed: sf_server_update_prepare_and_check MUST use request->body 2021-04-19 21:43:19 +08:00
YuQing e4d529ab29 define macro SF_CLUSTER_CONFIG_SIGN_LEN 2021-04-19 15:29:28 +08:00
YuQing 1443288d29 add macros SF_PROTO_CLIENT_SET_REQ etc. 2021-04-19 08:58:51 +08:00
YuQing 13a21d5908 add types and macros 2021-04-16 21:44:40 +08:00
YuQing 2792b2f275 sf_load_cluster_config_ex: add param full_cluster_filename 2021-04-12 15:29:46 +08:00
YuQing ee179a16f7 sf_recv_response_header: call SF_PROTO_CHECK_MAGIC 2021-04-12 15:29:01 +08:00
YuQing 68db56790c add function sf_notify_all_threads_ex 2021-04-09 21:26:57 +08:00
YuQing f563bb17ef SFProtoRecvBuffer enhanced (add SFProtoRBufferFixedWrapper) 2021-04-07 14:57:52 +08:00
YuQing b49a3370f5 add sf_cluster_cfg.[hc] 2021-03-31 11:00:03 +08:00
YuQing 9f232770da add sf_recv_vary_response and sf_send_and_recv_vary_response 2021-03-19 18:53:59 +08:00
YuQing a7a8f5af4b change connection_manager extra pointer 2021-03-17 14:32:51 +08:00
YuQing f60fcf0d82 server_expect_body_length etc.: remove useless task parameter 2021-03-16 19:05:50 +08:00
YuQing aa4f66c578 add macro server_expect_body_length etc. 2021-03-11 15:16:43 +08:00
YuQing 86017c46ac add functions sf_proto_init_task_context, sf_proto_deal_task_done etc. 2021-03-10 11:15:09 +08:00
YuQing ae600238bc add ENODATA convert 2021-03-05 11:25:21 +08:00
YuQing 221ae1727d add type SFKeyValueArray 2021-03-03 20:57:00 +08:00
YuQing 3616fde9e0 push_to_detect_queue when two sptr arrays equal 2021-02-22 21:50:49 +08:00
YuQing 89dd6733b6 split to prepare and start due to daemon_init 2021-02-22 21:21:25 +08:00
YuQing f3e24601d2 connection manager: support detect server for alive 2021-02-22 19:37:57 +08:00
YuQing f7ac526284 connection_manager support option: bg_thread_enabled 2021-02-21 21:20:36 +08:00
YuQing 47ed8fb46c faststore use this connection manager 2021-02-20 12:49:11 +08:00
YuQing 4aeec5385a sf_connection_manager impl all interfaces 2021-02-19 21:05:38 +08:00
YuQing 85f76e2f47 sf_connection_manager impl get_connection etc. 2021-02-19 16:47:45 +08:00
YuQing 3dc8efde5c impl proto_get_group_servers client side 2021-02-18 16:36:33 +08:00
YuQing 54b464e0f5 add get_group_servers protocol 2021-02-17 20:40:33 +08:00
YuQing 25dacd361f impl connection_manager init and add 2021-02-17 11:18:56 +08:00
YuQing 42715c9be0 add sf_connection_manager.[hc] 2021-02-15 13:26:51 +08:00
YuQing 67b412fb88 bugfixed: MUST set stage to SF_NIO_STAGE_NONE first for re-entry 2021-02-10 21:38:45 +08:00
YuQing 3a4a7069b9 add type SFBinlogWriterStat 2021-02-10 11:33:48 +08:00
YuQing 11165cbb20 log NULL continue_callback with SF_NIO_STAGE_CONTINUE 2021-02-09 22:25:32 +08:00
YuQing 1b4e0ad870 bugfixed: do NOT check order_by in sf_binlog_writer_change_next_version 2021-02-08 17:30:21 +08:00
YuQing 87b2e19766 add macro SF_CLUSTER_ERROR_LEADER_VERSION_INCONSISTENT 2021-01-25 16:21:18 +08:00
YuQing 3659542eba sf_binlog_writer: change order_by gracefully 2021-01-24 22:34:19 +08:00
YuQing ad8a7c379b log error when idempotency request not finished 2021-01-22 10:13:05 +08:00
YuQing 76f757f2bd bugfixed: add_to_flush_writer_queue MUST before deal function 2021-01-21 10:43:39 +08:00
YuQing 1ece8a3389 binlog writer simplify versioned buffer queue 2021-01-21 10:13:21 +08:00
YuQing 8040af4743 add macro SF_IS_SERVER_RETRIABLE_ERROR 2021-01-19 17:00:50 +08:00
YuQing 6bea6c93a9 add error code SF_ERROR_EOPNOTSUPP 2021-01-19 09:46:28 +08:00
YuQing 223f15fb79 add functions: sf_set_deal_task_func_ex etc. 2021-01-18 11:25:32 +08:00
YuQing 077c29e2b6 convert errno EBUSY 2021-01-12 17:58:19 +08:00
YuQing 20b0cee201 correct RETRIABLE and FORCE_CLOSE errno 2021-01-08 16:06:21 +08:00
YuQing 0014cfa154 add tag for debug 2021-01-07 20:19:13 +08:00
YuQing e459a0c255 should include sf_util.h 2021-01-07 15:44:37 +08:00
YuQing 1f95bdf89b call sf_localize_errno in sf_proto_extract_header 2021-01-07 15:40:23 +08:00
YuQing c0128c0f15 unify errno for crossing platform 2021-01-07 12:20:40 +08:00
YuQing 0825cfc5fe fast_mblock_free_object writer buffer 2021-01-06 18:45:26 +08:00
YuQing f01231bc48 upgrade version to 1.1.2 2021-01-01 08:21:57 +08:00
YuQing 0012c2de92 change function sf_add_slow_log_schedule prototype 2020-12-30 16:23:39 +08:00
YuQing a05e343e9b slow log config and schedule 2020-12-29 21:20:35 +08:00
YuQing fc5480214a unify log relative configs 2020-12-29 16:25:19 +08:00
YuQing b7b6ad46f6 add macro: sf_log_network_error_for_update 2020-12-19 10:10:34 +08:00
YuQing f7e76c0a97 support rebind idempotency channel 2020-12-18 22:27:10 +08:00
YuQing 269ada2688 support key_type one and two 2020-12-10 14:43:49 +08:00
YuQing 56eda633d8 add src/sf_sharding_htable.[hc] 2020-12-10 14:13:40 +08:00
YuQing 1d9add37fb add macro SF_BINLOG_BUFFER_SET_VERSION 2020-12-09 22:23:21 +08:00
YuQing d7309da368 sf_binlog_writer support version range 2020-12-09 11:46:12 +08:00
YuQing a6b9d8d08d TCP_SET_QUICK_ACK for Linux 2020-12-06 17:00:14 +08:00
YuQing 9f7af9b35d use iniGetByteCorrectValueEx to get byte value 2020-12-03 10:30:17 +08:00
YuQing e01048f462 network buff_size support extra size 2020-12-01 21:00:06 +08:00
YuQing acf27b0e4f use newest fast_timer in libfastcommon 2020-11-23 11:46:22 +08:00
YuQing baf9ad7c94 fix compile error: add -Iinclude CFLAGS 2020-11-09 21:02:29 +08:00
YuQing 4a92e31272 sf_nio_notify more graceful 2020-11-09 09:18:25 +08:00
YuQing cce11f56cb use function lcp_timedwait_sec 2020-10-31 14:20:12 +08:00
YuQing 42c8a65a8f logDebug when then nio stage equals to the target 2020-10-28 16:21:09 +08:00
YuQing b9b5dd490d add function sf_strerror 2020-10-28 16:07:22 +08:00
YuQing 719f8b2b32 task use reffer_count for share 2020-10-28 14:16:58 +08:00
YuQing 946bd8fe46 clear nio_stages.notify when task canceled 2020-10-27 08:56:31 +08:00
YuQing b9e22e61fc flush_writers: use chain instead of ptr array 2020-10-26 16:48:48 +08:00
YuQing 99f80b847e sf_load_read_rule_config support default value 2020-10-25 20:40:14 +08:00
YuQing e0bba18a02 use atomic operation to avoid reentrance 2020-10-21 09:32:49 +08:00
YuQing 5c6cff1ea3 check and correct thread_stack_size 2020-10-20 20:40:55 +08:00
YuQing 1854683ddd nio stage change to 2 fields: current and notify 2020-10-19 16:39:43 +08:00
YuQing 52254b522b correct active_test spell 2020-10-19 14:36:46 +08:00
YuQing 38df5d412c add AGPLv3 license and copyright 2020-10-14 10:33:41 +08:00
YuQing 79d367854b add type struct sf_space_stat 2020-10-11 12:53:41 +08:00
YuQing 730ed9db6e add function sf_send_and_recv_response_ex1 2020-10-10 15:06:04 +08:00
YuQing 6ccf936ee5 add function: sf_terminate_myself 2020-09-30 19:30:12 +08:00
YuQing c8a4f5e138 add func: sf_binlog_writer_get_last_lines 2020-09-30 11:46:04 +08:00