new_rsc_ticket 2569 pengine/constraints.c rsc_ticket_t *new_rsc_ticket = NULL; new_rsc_ticket 2576 pengine/constraints.c new_rsc_ticket = calloc(1, sizeof(rsc_ticket_t)); new_rsc_ticket 2577 pengine/constraints.c if (new_rsc_ticket == NULL) { new_rsc_ticket 2585 pengine/constraints.c new_rsc_ticket->id = id; new_rsc_ticket 2586 pengine/constraints.c new_rsc_ticket->ticket = ticket; new_rsc_ticket 2587 pengine/constraints.c new_rsc_ticket->rsc_lh = rsc_lh; new_rsc_ticket 2588 pengine/constraints.c new_rsc_ticket->role_lh = text2role(state_lh); new_rsc_ticket 2592 pengine/constraints.c new_rsc_ticket->loss_policy = loss_ticket_fence; new_rsc_ticket 2600 pengine/constraints.c if (new_rsc_ticket->loss_policy == loss_ticket_fence) { new_rsc_ticket 2602 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2603 pengine/constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2607 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2608 pengine/constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2609 pengine/constraints.c new_rsc_ticket->loss_policy = loss_ticket_freeze; new_rsc_ticket 2613 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2614 pengine/constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2615 pengine/constraints.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 2619 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2620 pengine/constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2621 pengine/constraints.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 2624 pengine/constraints.c if (new_rsc_ticket->role_lh == RSC_ROLE_MASTER) { new_rsc_ticket 2626 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2627 pengine/constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2628 pengine/constraints.c new_rsc_ticket->loss_policy = loss_ticket_demote; new_rsc_ticket 2632 pengine/constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, new_rsc_ticket 2633 pengine/constraints.c role2text(new_rsc_ticket->role_lh)); new_rsc_ticket 2634 pengine/constraints.c new_rsc_ticket->loss_policy = loss_ticket_stop; new_rsc_ticket 2638 pengine/constraints.c pe_rsc_trace(rsc_lh, "%s (%s) ==> %s", rsc_lh->id, role2text(new_rsc_ticket->role_lh), new_rsc_ticket 2641 pengine/constraints.c rsc_lh->rsc_tickets = g_list_append(rsc_lh->rsc_tickets, new_rsc_ticket); new_rsc_ticket 2643 pengine/constraints.c data_set->ticket_constraints = g_list_append(data_set->ticket_constraints, new_rsc_ticket); new_rsc_ticket 2645 pengine/constraints.c if (new_rsc_ticket->ticket->granted == FALSE || new_rsc_ticket->ticket->standby) { new_rsc_ticket 2646 pengine/constraints.c rsc_ticket_constraint(rsc_lh, new_rsc_ticket, data_set);