fc_data 299 lib/pengine/failcounts.c struct failcount_data *fc_data = user_data; fc_data 302 lib/pengine/failcounts.c if (regexec(&(fc_data->failcount_re), (const char *) key, 0, NULL, 0) == 0) { fc_data 309 lib/pengine/failcounts.c (const char *) key, pcmk__node_name(fc_data->node), fc_data 313 lib/pengine/failcounts.c fc_data->failcount = pcmk__add_scores(fc_data->failcount, score); fc_data 314 lib/pengine/failcounts.c pcmk__rsc_trace(fc_data->rsc, "Added %s (%s) to %s fail count (now %s)", fc_data 316 lib/pengine/failcounts.c fc_data->rsc->id, fc_data 317 lib/pengine/failcounts.c pcmk_readable_score(fc_data->failcount)); fc_data 322 lib/pengine/failcounts.c if (regexec(&(fc_data->lastfailure_re), (const char *) key, 0, NULL, fc_data 332 lib/pengine/failcounts.c fc_data->last_failure = (time_t) QB_MAX(fc_data->last_failure, last_ll); fc_data 347 lib/pengine/failcounts.c struct failcount_data *fc_data = user_data; fc_data 350 lib/pengine/failcounts.c fc_data->failcount += pe_get_failcount(fc_data->node, filler, fc_data 351 lib/pengine/failcounts.c &filler_last_failure, fc_data->flags, fc_data 352 lib/pengine/failcounts.c fc_data->xml_op); fc_data 353 lib/pengine/failcounts.c fc_data->last_failure = QB_MAX(fc_data->last_failure, filler_last_failure); fc_data 376 lib/pengine/failcounts.c struct failcount_data fc_data = { fc_data 386 lib/pengine/failcounts.c CRM_CHECK(generate_fail_regexes(rsc, &fc_data.failcount_re, fc_data 387 lib/pengine/failcounts.c &fc_data.lastfailure_re) == pcmk_rc_ok, fc_data 390 lib/pengine/failcounts.c &fc_data); fc_data 391 lib/pengine/failcounts.c regfree(&(fc_data.failcount_re)); fc_data 392 lib/pengine/failcounts.c regfree(&(fc_data.lastfailure_re)); fc_data 395 lib/pengine/failcounts.c if ((fc_data.failcount > 0) && (rsc->failure_timeout > 0) fc_data 406 lib/pengine/failcounts.c if (pcmk_is_set(flags, pcmk__fc_effective) && (fc_data.failcount > 0) fc_data 407 lib/pengine/failcounts.c && (fc_data.last_failure > 0) && (rsc->failure_timeout != 0)) { fc_data 411 lib/pengine/failcounts.c if (now > (fc_data.last_failure + rsc->failure_timeout)) { fc_data 415 lib/pengine/failcounts.c fc_data.failcount = 0; fc_data 432 lib/pengine/failcounts.c g_list_foreach(rsc->fillers, update_failcount_for_filler, &fc_data); fc_data 433 lib/pengine/failcounts.c if (fc_data.failcount > 0) { fc_data 437 lib/pengine/failcounts.c rsc->id, pcmk_readable_score(fc_data.failcount), fc_data 438 lib/pengine/failcounts.c pcmk__plural_s(fc_data.failcount), fc_data 442 lib/pengine/failcounts.c } else if (fc_data.failcount > 0) { fc_data 444 lib/pengine/failcounts.c rsc->id, pcmk_readable_score(fc_data.failcount), fc_data 445 lib/pengine/failcounts.c pcmk__plural_s(fc_data.failcount), fc_data 450 lib/pengine/failcounts.c if ((fc_data.failcount > 0) && (fc_data.last_failure > 0)) { fc_data 451 lib/pengine/failcounts.c *last_failure = fc_data.last_failure; fc_data 456 lib/pengine/failcounts.c return fc_data.failcount;