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 303 lib/pengine/failcounts.c fc_data->failcount = pcmk__add_scores(fc_data->failcount, fc_data 305 lib/pengine/failcounts.c pcmk__rsc_trace(fc_data->rsc, "Added %s (%s) to %s fail count (now %s)", fc_data 307 lib/pengine/failcounts.c fc_data->rsc->id, fc_data 308 lib/pengine/failcounts.c pcmk_readable_score(fc_data->failcount)); fc_data 313 lib/pengine/failcounts.c if (regexec(&(fc_data->lastfailure_re), (const char *) key, 0, NULL, fc_data 318 lib/pengine/failcounts.c fc_data->last_failure = (time_t) QB_MAX(fc_data->last_failure, fc_data 335 lib/pengine/failcounts.c struct failcount_data *fc_data = user_data; fc_data 338 lib/pengine/failcounts.c fc_data->failcount += pe_get_failcount(fc_data->node, filler, fc_data 339 lib/pengine/failcounts.c &filler_last_failure, fc_data->flags, fc_data 340 lib/pengine/failcounts.c fc_data->xml_op); fc_data 341 lib/pengine/failcounts.c fc_data->last_failure = QB_MAX(fc_data->last_failure, filler_last_failure); fc_data 364 lib/pengine/failcounts.c struct failcount_data fc_data = { fc_data 374 lib/pengine/failcounts.c CRM_CHECK(generate_fail_regexes(rsc, &fc_data.failcount_re, fc_data 375 lib/pengine/failcounts.c &fc_data.lastfailure_re) == pcmk_rc_ok, fc_data 378 lib/pengine/failcounts.c &fc_data); fc_data 379 lib/pengine/failcounts.c regfree(&(fc_data.failcount_re)); fc_data 380 lib/pengine/failcounts.c regfree(&(fc_data.lastfailure_re)); fc_data 383 lib/pengine/failcounts.c if ((fc_data.failcount > 0) && (rsc->failure_timeout > 0) fc_data 394 lib/pengine/failcounts.c if (pcmk_is_set(flags, pcmk__fc_effective) && (fc_data.failcount > 0) fc_data 395 lib/pengine/failcounts.c && (fc_data.last_failure > 0) && (rsc->failure_timeout != 0)) { fc_data 399 lib/pengine/failcounts.c if (now > (fc_data.last_failure + rsc->failure_timeout)) { fc_data 403 lib/pengine/failcounts.c fc_data.failcount = 0; fc_data 420 lib/pengine/failcounts.c g_list_foreach(rsc->fillers, update_failcount_for_filler, &fc_data); fc_data 421 lib/pengine/failcounts.c if (fc_data.failcount > 0) { fc_data 425 lib/pengine/failcounts.c rsc->id, pcmk_readable_score(fc_data.failcount), fc_data 426 lib/pengine/failcounts.c pcmk__plural_s(fc_data.failcount), fc_data 430 lib/pengine/failcounts.c } else if (fc_data.failcount > 0) { fc_data 432 lib/pengine/failcounts.c rsc->id, pcmk_readable_score(fc_data.failcount), fc_data 433 lib/pengine/failcounts.c pcmk__plural_s(fc_data.failcount), fc_data 438 lib/pengine/failcounts.c if ((fc_data.failcount > 0) && (fc_data.last_failure > 0)) { fc_data 439 lib/pengine/failcounts.c *last_failure = fc_data.last_failure; fc_data 444 lib/pengine/failcounts.c return fc_data.failcount;