new_rsc_ticket 2787 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_t *new_rsc_ticket = NULL; new_rsc_ticket 2795 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket = calloc(1, sizeof(rsc_ticket_t)); new_rsc_ticket 2796 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket == NULL) { new_rsc_ticket 2804 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->id = id; new_rsc_ticket 2805 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket = ticket; new_rsc_ticket 2806 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->rsc_lh = rsc_lh; new_rsc_ticket 2807 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->role_lh = text2role(state_lh); new_rsc_ticket 2811 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_fence; new_rsc_ticket 2820 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->loss_policy == loss_ticket_fence) { new_rsc_ticket 2822 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2823 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2827 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2828 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2829 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_freeze; new_rsc_ticket 2833 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2834 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2835 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 2839 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2840 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2841 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 2844 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->role_lh == RSC_ROLE_PROMOTED) { new_rsc_ticket 2846 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2847 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2848 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 2852 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2853 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2854 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 2858 lib/pacemaker/pcmk_sched_constraints.c pe_rsc_trace(rsc_lh, "%s (%s) ==> %s", rsc_lh->id, role2text(new_rsc_ticket->role_lh), new_rsc_ticket 2861 lib/pacemaker/pcmk_sched_constraints.c rsc_lh->rsc_tickets = g_list_append(rsc_lh->rsc_tickets, new_rsc_ticket); new_rsc_ticket 2863 lib/pacemaker/pcmk_sched_constraints.c data_set->ticket_constraints = g_list_append(data_set->ticket_constraints, new_rsc_ticket); new_rsc_ticket 2865 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->ticket->granted == FALSE || new_rsc_ticket->ticket->standby) { new_rsc_ticket 2866 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_constraint(rsc_lh, new_rsc_ticket, data_set);