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 pe_rsc_trace(fc_data->rsc, "Added %s (%s) to %s fail count (now %s)", fc_data 306 lib/pengine/failcounts.c (const char *) key, (const char *) value, fc_data->rsc->id, fc_data 307 lib/pengine/failcounts.c pcmk_readable_score(fc_data->failcount)); fc_data 312 lib/pengine/failcounts.c if (regexec(&(fc_data->lastfailure_re), (const char *) key, 0, NULL, fc_data 317 lib/pengine/failcounts.c fc_data->last_failure = (time_t) QB_MAX(fc_data->last_failure, fc_data 334 lib/pengine/failcounts.c struct failcount_data *fc_data = user_data; fc_data 337 lib/pengine/failcounts.c fc_data->failcount += pe_get_failcount(fc_data->node, filler, fc_data 338 lib/pengine/failcounts.c &filler_last_failure, fc_data->flags, fc_data 339 lib/pengine/failcounts.c fc_data->xml_op); fc_data 340 lib/pengine/failcounts.c fc_data->last_failure = QB_MAX(fc_data->last_failure, filler_last_failure); fc_data 363 lib/pengine/failcounts.c struct failcount_data fc_data = { fc_data 373 lib/pengine/failcounts.c CRM_CHECK(generate_fail_regexes(rsc, &fc_data.failcount_re, fc_data 374 lib/pengine/failcounts.c &fc_data.lastfailure_re) == pcmk_rc_ok, fc_data 377 lib/pengine/failcounts.c &fc_data); fc_data 378 lib/pengine/failcounts.c regfree(&(fc_data.failcount_re)); fc_data 379 lib/pengine/failcounts.c regfree(&(fc_data.lastfailure_re)); fc_data 382 lib/pengine/failcounts.c if ((fc_data.failcount > 0) && (rsc->failure_timeout > 0) fc_data 392 lib/pengine/failcounts.c if (pcmk_is_set(flags, pcmk__fc_effective) && (fc_data.failcount > 0) fc_data 393 lib/pengine/failcounts.c && (fc_data.last_failure > 0) && (rsc->failure_timeout != 0)) { fc_data 397 lib/pengine/failcounts.c if (now > (fc_data.last_failure + rsc->failure_timeout)) { fc_data 400 lib/pengine/failcounts.c fc_data.failcount = 0; fc_data 417 lib/pengine/failcounts.c g_list_foreach(rsc->fillers, update_failcount_for_filler, &fc_data); fc_data 418 lib/pengine/failcounts.c if (fc_data.failcount > 0) { fc_data 422 lib/pengine/failcounts.c rsc->id, pcmk_readable_score(fc_data.failcount), fc_data 423 lib/pengine/failcounts.c pcmk__plural_s(fc_data.failcount), pe__node_name(node)); fc_data 426 lib/pengine/failcounts.c } else if (fc_data.failcount > 0) { fc_data 428 lib/pengine/failcounts.c rsc->id, pcmk_readable_score(fc_data.failcount), fc_data 429 lib/pengine/failcounts.c pcmk__plural_s(fc_data.failcount), pe__node_name(node)); fc_data 433 lib/pengine/failcounts.c if ((fc_data.failcount > 0) && (fc_data.last_failure > 0)) { fc_data 434 lib/pengine/failcounts.c *last_failure = fc_data.last_failure; fc_data 439 lib/pengine/failcounts.c return fc_data.failcount;