|
@@ -213,6 +213,8 @@ static void totem_volatile_config_read (
|
|
|
|
|
|
|
|
objdb_get_int (objdb,object_totem_handle, "rrp_problem_count_threshold", &totem_config->rrp_problem_count_threshold);
|
|
objdb_get_int (objdb,object_totem_handle, "rrp_problem_count_threshold", &totem_config->rrp_problem_count_threshold);
|
|
|
|
|
|
|
|
|
|
+ objdb_get_int (objdb,object_totem_handle, "rrp_problem_count_mcast_threshold", &totem_config->rrp_problem_count_mcast_threshold);
|
|
|
|
|
+
|
|
|
objdb_get_int (objdb,object_totem_handle, "rrp_autorecovery_check_timeout", &totem_config->rrp_autorecovery_check_timeout);
|
|
objdb_get_int (objdb,object_totem_handle, "rrp_autorecovery_check_timeout", &totem_config->rrp_autorecovery_check_timeout);
|
|
|
|
|
|
|
|
objdb_get_int (objdb,object_totem_handle, "heartbeat_failures_allowed", &totem_config->heartbeat_failures_allowed);
|
|
objdb_get_int (objdb,object_totem_handle, "heartbeat_failures_allowed", &totem_config->heartbeat_failures_allowed);
|
|
@@ -667,12 +669,21 @@ int totem_config_validate (
|
|
|
if (totem_config->rrp_problem_count_threshold == 0) {
|
|
if (totem_config->rrp_problem_count_threshold == 0) {
|
|
|
totem_config->rrp_problem_count_threshold = RRP_PROBLEM_COUNT_THRESHOLD_DEFAULT;
|
|
totem_config->rrp_problem_count_threshold = RRP_PROBLEM_COUNT_THRESHOLD_DEFAULT;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (totem_config->rrp_problem_count_mcast_threshold == 0) {
|
|
|
|
|
+ totem_config->rrp_problem_count_mcast_threshold = totem_config->rrp_problem_count_threshold * 10;
|
|
|
|
|
+ }
|
|
|
if (totem_config->rrp_problem_count_threshold < RRP_PROBLEM_COUNT_THRESHOLD_MIN) {
|
|
if (totem_config->rrp_problem_count_threshold < RRP_PROBLEM_COUNT_THRESHOLD_MIN) {
|
|
|
snprintf (local_error_reason, sizeof(local_error_reason),
|
|
snprintf (local_error_reason, sizeof(local_error_reason),
|
|
|
"The RRP problem count threshold (%d problem count) may not be less then (%d problem count).",
|
|
"The RRP problem count threshold (%d problem count) may not be less then (%d problem count).",
|
|
|
totem_config->rrp_problem_count_threshold, RRP_PROBLEM_COUNT_THRESHOLD_MIN);
|
|
totem_config->rrp_problem_count_threshold, RRP_PROBLEM_COUNT_THRESHOLD_MIN);
|
|
|
goto parse_error;
|
|
goto parse_error;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (totem_config->rrp_problem_count_mcast_threshold < RRP_PROBLEM_COUNT_THRESHOLD_MIN) {
|
|
|
|
|
+ snprintf (local_error_reason, sizeof(local_error_reason),
|
|
|
|
|
+ "The RRP multicast problem count threshold (%d problem count) may not be less then (%d problem count).",
|
|
|
|
|
+ totem_config->rrp_problem_count_mcast_threshold, RRP_PROBLEM_COUNT_THRESHOLD_MIN);
|
|
|
|
|
+ goto parse_error;
|
|
|
|
|
+ }
|
|
|
if (totem_config->rrp_token_expired_timeout == 0) {
|
|
if (totem_config->rrp_token_expired_timeout == 0) {
|
|
|
totem_config->rrp_token_expired_timeout =
|
|
totem_config->rrp_token_expired_timeout =
|
|
|
totem_config->token_retransmit_timeout;
|
|
totem_config->token_retransmit_timeout;
|