فهرست منبع

defect 892
Fix performance degradation when sending 10-15 messages per second because
of a large seqno_unchanged_const. Also, seqno_unchanged_const does not have
a configurable option and this patch adds that support.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@814 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 سال پیش
والد
کامیت
2218d1d078
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      exec/totemconfig.c

+ 3 - 1
exec/totemconfig.c

@@ -62,7 +62,7 @@
 #define MERGE_TIMEOUT				200
 #define DOWNCHECK_TIMEOUT			1000
 #define FAIL_TO_RECV_CONST			10
-#define	SEQNO_UNCHANGED_CONST			3000
+#define	SEQNO_UNCHANGED_CONST			30
 #define MINIMUM_TIMEOUT				(1000/HZ)*3
 
 static char error_string_response[512];
@@ -252,6 +252,8 @@ extern int totem_config_read (
 				totem_config->downcheck_timeout = atoi(loc);
 			} else if ((loc = strstr_rs (line, "fail_recv_const:"))) {
 				totem_config->fail_to_recv_const = atoi(loc);
+			} else if ((loc = strstr_rs (line, "seqno_unchanged_const:"))) {
+				totem_config->seqno_unchanged_const = atoi(loc);
 			} else if ((loc = strstr_rs (line, "}"))) {
 				parse = MAIN_HEAD;
 			} else {