new_rsc_ticket 2721 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_t *new_rsc_ticket = NULL; new_rsc_ticket 2729 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket = calloc(1, sizeof(rsc_ticket_t)); new_rsc_ticket 2730 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket == NULL) { new_rsc_ticket 2738 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->id = id; new_rsc_ticket 2739 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket = ticket; new_rsc_ticket 2740 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->rsc_lh = rsc_lh; new_rsc_ticket 2741 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->role_lh = text2role(state_lh); new_rsc_ticket 2745 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_fence; new_rsc_ticket 2754 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->loss_policy == loss_ticket_fence) { new_rsc_ticket 2756 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2757 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2761 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2762 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2763 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_freeze; new_rsc_ticket 2767 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2768 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2769 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 2773 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2774 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2775 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 2778 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->role_lh == RSC_ROLE_MASTER) { new_rsc_ticket 2780 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2781 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2782 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 2786 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2787 lib/pacemaker/pcmk_sched_constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2788 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 2792 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 2795 lib/pacemaker/pcmk_sched_constraints.c rsc_lh->rsc_tickets = g_list_append(rsc_lh->rsc_tickets, new_rsc_ticket); new_rsc_ticket 2797 lib/pacemaker/pcmk_sched_constraints.c data_set->ticket_constraints = g_list_append(data_set->ticket_constraints, new_rsc_ticket); new_rsc_ticket 2799 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->ticket->granted == FALSE || new_rsc_ticket->ticket->standby) { new_rsc_ticket 2800 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_constraint(rsc_lh, new_rsc_ticket, data_set);