new_rsc_ticket 150 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_t *new_rsc_ticket = NULL; new_rsc_ticket 158 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket = calloc(1, sizeof(rsc_ticket_t)); new_rsc_ticket 159 lib/pacemaker/pcmk_sched_tickets.c if (new_rsc_ticket == NULL) { new_rsc_ticket 168 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->id = id; new_rsc_ticket 169 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket = ticket; new_rsc_ticket 170 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->rsc = rsc; new_rsc_ticket 171 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->role = pcmk_parse_role(state); new_rsc_ticket 175 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->loss_policy = loss_ticket_fence; new_rsc_ticket 184 lib/pacemaker/pcmk_sched_tickets.c if (new_rsc_ticket->loss_policy == loss_ticket_fence) { new_rsc_ticket 186 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, new_rsc_ticket 187 lib/pacemaker/pcmk_sched_tickets.c pcmk_role_text(new_rsc_ticket->role)); new_rsc_ticket 191 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, new_rsc_ticket 192 lib/pacemaker/pcmk_sched_tickets.c pcmk_role_text(new_rsc_ticket->role)); new_rsc_ticket 193 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->loss_policy = loss_ticket_freeze; new_rsc_ticket 197 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, new_rsc_ticket 198 lib/pacemaker/pcmk_sched_tickets.c pcmk_role_text(new_rsc_ticket->role)); new_rsc_ticket 199 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 203 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, new_rsc_ticket 204 lib/pacemaker/pcmk_sched_tickets.c pcmk_role_text(new_rsc_ticket->role)); new_rsc_ticket 205 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 208 lib/pacemaker/pcmk_sched_tickets.c if (new_rsc_ticket->role == pcmk_role_promoted) { new_rsc_ticket 210 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, new_rsc_ticket 211 lib/pacemaker/pcmk_sched_tickets.c pcmk_role_text(new_rsc_ticket->role)); new_rsc_ticket 212 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 216 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, new_rsc_ticket 217 lib/pacemaker/pcmk_sched_tickets.c pcmk_role_text(new_rsc_ticket->role)); new_rsc_ticket 218 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 223 lib/pacemaker/pcmk_sched_tickets.c rsc->id, pcmk_role_text(new_rsc_ticket->role), ticket->id); new_rsc_ticket 225 lib/pacemaker/pcmk_sched_tickets.c rsc->rsc_tickets = g_list_append(rsc->rsc_tickets, new_rsc_ticket); new_rsc_ticket 228 lib/pacemaker/pcmk_sched_tickets.c rsc->cluster->ticket_constraints, new_rsc_ticket); new_rsc_ticket 230 lib/pacemaker/pcmk_sched_tickets.c if (!(new_rsc_ticket->ticket->granted) || new_rsc_ticket->ticket->standby) { new_rsc_ticket 231 lib/pacemaker/pcmk_sched_tickets.c constraints_for_ticket(rsc, new_rsc_ticket);