New objdb var runtime.totem.pg.mrp.srp.firewall_enabled_or_nic_failure is set to 1 if continuous_gather is larger then MAX_NO_CONT_GATHER. Under normal conditions, value of variable is 0.
Signed-off-by: Jan Friesse <jfrie...@redhat.com> --- exec/main.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/exec/main.c b/exec/main.c index b04f503..d703b19 100644 --- a/exec/main.c +++ b/exec/main.c @@ -563,6 +563,7 @@ static void corosync_totem_stats_updater (void *data) uint32_t total_token_holdtime; int t, prev; int32_t token_count; + uint32_t firewall_enabled_or_nic_failure; stats = api->totem_get_stats(); @@ -639,6 +640,11 @@ static void corosync_totem_stats_updater (void *data) "continuous_gather", strlen("continuous_gather"), &stats->mrp->srp->continuous_gather, sizeof (stats->mrp->srp->continuous_gather)); + firewall_enabled_or_nic_failure = (stats->mrp->srp->continuous_gather > MAX_NO_CONT_GATHER ? 1 : 0); + objdb->object_key_replace (stats->mrp->srp->hdr.handle, + "firewall_enabled_or_nic_failure", strlen("firewall_enabled_or_nic_failure"), + &firewall_enabled_or_nic_failure, sizeof (firewall_enabled_or_nic_failure)); + total_mtt_rx_token = 0; total_token_holdtime = 0; total_backlog_calc = 0; @@ -799,6 +805,9 @@ static void corosync_totem_stats_init (void) objdb->object_key_create_typed (stats->mrp->srp->hdr.handle, "continuous_gather", &zero_32, sizeof (zero_32), OBJDB_VALUETYPE_UINT32); + objdb->object_key_create_typed (stats->mrp->srp->hdr.handle, + "firewall_enabled_or_nic_failure", &zero_32, + sizeof (zero_32), OBJDB_VALUETYPE_UINT32); } /* start stats timer */ -- 1.6.2.5 _______________________________________________ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais