ticket 1646 lib/pacemaker/pcmk_output.c const char *ticket = va_arg(args, const char *); ticket 1653 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Making ticket %s standby", ticket); ticket 1655 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s ticket %s", action, ticket); ticket 1666 lib/pacemaker/pcmk_output.c const char *ticket = va_arg(args, const char *); ticket 1674 lib/pacemaker/pcmk_output.c PCMK_XA_TICKET, ticket, ticket 32 lib/pacemaker/pcmk_sched_tickets.c pcmk_ticket_t *ticket; ticket 71 lib/pacemaker/pcmk_sched_tickets.c if (rsc_ticket->ticket->granted && !rsc_ticket->ticket->standby) { ticket 84 lib/pacemaker/pcmk_sched_tickets.c rsc->id, rsc_ticket->ticket->id, rsc_ticket->id, ticket 87 lib/pacemaker/pcmk_sched_tickets.c if (!rsc_ticket->ticket->granted && (rsc->running_on != NULL)) { ticket 128 lib/pacemaker/pcmk_sched_tickets.c } else if (!rsc_ticket->ticket->granted) { ticket 136 lib/pacemaker/pcmk_sched_tickets.c } else if (rsc_ticket->ticket->standby) { ticket 147 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(const char *id, pcmk_resource_t *rsc, pcmk_ticket_t *ticket, ticket 169 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket = ticket; ticket 179 lib/pacemaker/pcmk_sched_tickets.c "because fencing is not configured", ticket->id); ticket 186 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 191 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 197 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 203 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 210 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 216 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 223 lib/pacemaker/pcmk_sched_tickets.c rsc->id, pcmk_role_text(new_rsc_ticket->role), ticket->id); ticket 230 lib/pacemaker/pcmk_sched_tickets.c if (!(new_rsc_ticket->ticket->granted) || new_rsc_ticket->ticket->standby) { ticket 237 lib/pacemaker/pcmk_sched_tickets.c unpack_rsc_ticket_set(xmlNode *set, pcmk_ticket_t *ticket, ticket 244 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK(ticket != NULL, return EINVAL); ticket 269 lib/pacemaker/pcmk_sched_tickets.c resource->id, ticket->id); ticket 270 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy); ticket 283 lib/pacemaker/pcmk_sched_tickets.c pcmk_ticket_t *ticket = NULL; ticket 313 lib/pacemaker/pcmk_sched_tickets.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_str); ticket 316 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 351 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(id, rsc, ticket, state, loss_policy); ticket 441 lib/pacemaker/pcmk_sched_tickets.c pcmk_ticket_t *ticket = NULL; ticket 464 lib/pacemaker/pcmk_sched_tickets.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_str); ticket 467 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 468 lib/pacemaker/pcmk_sched_tickets.c ticket = ticket_new(ticket_str, scheduler); ticket 469 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 493 lib/pacemaker/pcmk_sched_tickets.c || (unpack_rsc_ticket_set(set, ticket, loss_policy, ticket 528 lib/pacemaker/pcmk_sched_tickets.c && (!rsc_ticket->ticket->granted || rsc_ticket->ticket->standby)) { ticket 57 lib/pacemaker/pcmk_ticket.c pcmk_ticket_t *ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 64 lib/pacemaker/pcmk_ticket.c && (ticket == NULL || ticket->granted == FALSE) ticket 193 lib/pacemaker/pcmk_ticket.c pcmk_ticket_t *ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 195 lib/pacemaker/pcmk_ticket.c if (ticket == NULL) { ticket 199 lib/pacemaker/pcmk_ticket.c if (ticket->granted) { ticket 265 lib/pacemaker/pcmk_ticket.c pcmk_ticket_t *ticket = NULL; ticket 273 lib/pacemaker/pcmk_ticket.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 275 lib/pacemaker/pcmk_ticket.c if (ticket != NULL) { ticket 276 lib/pacemaker/pcmk_ticket.c attr_value = g_hash_table_lookup(ticket->state, attr_name); ticket 321 lib/pacemaker/pcmk_ticket.c pcmk_ticket_t *ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 323 lib/pacemaker/pcmk_ticket.c if (ticket == NULL) { ticket 331 lib/pacemaker/pcmk_ticket.c g_hash_table_insert(tickets, strdup(ticket->id), ticket); ticket 3211 lib/pengine/pe_output.c pcmk_ticket_t *ticket = va_arg(args, pcmk_ticket_t *); ticket 3218 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s", ticket->id); ticket 3222 lib/pengine/pe_output.c if (details && g_hash_table_size(ticket->state) > 0) { ticket 3231 lib/pengine/pe_output.c g_hash_table_iter_init(&iter, ticket->state); ticket 3256 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 3269 lib/pengine/pe_output.c char *epoch_str = pcmk__epoch2str(&(ticket->last_granted), 0); ticket 3272 lib/pengine/pe_output.c ticket->id, ticket 3273 lib/pengine/pe_output.c (ticket->granted? "granted" : "revoked"), ticket 3274 lib/pengine/pe_output.c (ticket->standby? " [standby]" : ""), ticket 3279 lib/pengine/pe_output.c ticket->id, ticket 3280 lib/pengine/pe_output.c (ticket->granted? "granted" : "revoked"), ticket 3281 lib/pengine/pe_output.c (ticket->standby? " [standby]" : ""), ticket 3285 lib/pengine/pe_output.c out->list_item(out, NULL, "%s\t%s%s%s", ticket->id, ticket 3286 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 3287 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 3301 lib/pengine/pe_output.c pcmk_ticket_t *ticket = va_arg(args, pcmk_ticket_t *); ticket 3306 lib/pengine/pe_output.c const char *standby = pcmk__btoa(ticket->standby); ticket 3313 lib/pengine/pe_output.c status = ticket->granted? PCMK_VALUE_GRANTED : PCMK_VALUE_REVOKED; ticket 3316 lib/pengine/pe_output.c PCMK_XA_ID, ticket->id, ticket 3321 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 3322 lib/pengine/pe_output.c char *buf = pcmk__epoch2str(&ticket->last_granted, 0); ticket 3328 lib/pengine/pe_output.c g_hash_table_iter_init(&iter, ticket->state); ticket 3367 lib/pengine/pe_output.c pcmk_ticket_t *ticket = (pcmk_ticket_t *) value; ticket 3368 lib/pengine/pe_output.c out->message(out, "ticket", ticket, raw, details); ticket 1030 lib/pengine/unpack.c pcmk_ticket_t *ticket = NULL; ticket 1039 lib/pengine/unpack.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 1040 lib/pengine/unpack.c if (ticket == NULL) { ticket 1041 lib/pengine/unpack.c ticket = ticket_new(ticket_id, scheduler); ticket 1042 lib/pengine/unpack.c if (ticket == NULL) { ticket 1054 lib/pengine/unpack.c pcmk__insert_dup(ticket->state, prop_name, prop_value); ticket 1057 lib/pengine/unpack.c granted = g_hash_table_lookup(ticket->state, PCMK__XA_GRANTED); ticket 1059 lib/pengine/unpack.c ticket->granted = TRUE; ticket 1060 lib/pengine/unpack.c crm_info("We have ticket '%s'", ticket->id); ticket 1062 lib/pengine/unpack.c ticket->granted = FALSE; ticket 1063 lib/pengine/unpack.c crm_info("We do not have ticket '%s'", ticket->id); ticket 1066 lib/pengine/unpack.c last_granted = g_hash_table_lookup(ticket->state, PCMK_XA_LAST_GRANTED); ticket 1074 lib/pengine/unpack.c last_granted_ll, last_granted, ticket->id, ticket 1077 lib/pengine/unpack.c ticket->last_granted = (time_t) last_granted_ll; ticket 1080 lib/pengine/unpack.c standby = g_hash_table_lookup(ticket->state, PCMK_XA_STANDBY); ticket 1082 lib/pengine/unpack.c ticket->standby = TRUE; ticket 1083 lib/pengine/unpack.c if (ticket->granted) { ticket 1084 lib/pengine/unpack.c crm_info("Granted ticket '%s' is in standby-mode", ticket->id); ticket 1087 lib/pengine/unpack.c ticket->standby = FALSE; ticket 507 lib/pengine/utils.c pcmk_ticket_t *ticket = data; ticket 509 lib/pengine/utils.c if (ticket->state) { ticket 510 lib/pengine/utils.c g_hash_table_destroy(ticket->state); ticket 512 lib/pengine/utils.c free(ticket->id); ticket 513 lib/pengine/utils.c free(ticket); ticket 519 lib/pengine/utils.c pcmk_ticket_t *ticket = NULL; ticket 529 lib/pengine/utils.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 530 lib/pengine/utils.c if (ticket == NULL) { ticket 532 lib/pengine/utils.c ticket = calloc(1, sizeof(pcmk_ticket_t)); ticket 533 lib/pengine/utils.c if (ticket == NULL) { ticket 540 lib/pengine/utils.c ticket->id = strdup(ticket_id); ticket 541 lib/pengine/utils.c ticket->granted = FALSE; ticket 542 lib/pengine/utils.c ticket->last_granted = -1; ticket 543 lib/pengine/utils.c ticket->standby = FALSE; ticket 544 lib/pengine/utils.c ticket->state = pcmk__strkey_table(free, free); ticket 546 lib/pengine/utils.c g_hash_table_insert(scheduler->tickets, strdup(ticket->id), ticket); ticket 549 lib/pengine/utils.c return ticket;