new_rsc_ticket 2785 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_t *new_rsc_ticket = NULL; new_rsc_ticket 2793 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket = calloc(1, sizeof(rsc_ticket_t)); new_rsc_ticket 2794 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket == NULL) { new_rsc_ticket 2802 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->id = id; new_rsc_ticket 2803 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket = ticket; new_rsc_ticket 2804 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->rsc_lh = rsc_lh; new_rsc_ticket 2805 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->role_lh = text2role(state_lh); new_rsc_ticket 2809 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_fence; new_rsc_ticket 2818 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->loss_policy == loss_ticket_fence) { new_rsc_ticket 2820 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2821 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2825 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2826 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->loss_policy = loss_ticket_freeze; new_rsc_ticket 2831 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2832 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2833 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 2837 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2838 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2839 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 2842 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->role_lh == RSC_ROLE_PROMOTED) { new_rsc_ticket 2844 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2845 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2846 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 2850 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2851 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2852 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 2856 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 2859 lib/pacemaker/pcmk_sched_constraints.c rsc_lh->rsc_tickets = g_list_append(rsc_lh->rsc_tickets, new_rsc_ticket); new_rsc_ticket 2861 lib/pacemaker/pcmk_sched_constraints.c data_set->ticket_constraints = g_list_append(data_set->ticket_constraints, new_rsc_ticket); new_rsc_ticket 2863 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->ticket->granted == FALSE || new_rsc_ticket->ticket->standby) { new_rsc_ticket 2864 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_constraint(rsc_lh, new_rsc_ticket, data_set);