vote 147 daemons/controld/controld_election.c ha_msg_input_t *vote = fsa_typed_data(fsa_dt_ha_msg); vote 156 daemons/controld/controld_election.c rc = election_count_vote(fsa_election, vote->msg, cur_state != S_STARTING); vote 293 lib/cluster/election.c xmlNode *vote = NULL; vote 310 lib/cluster/election.c vote = create_request(CRM_OP_VOTE, NULL, NULL, CRM_SYSTEM_CRMD, CRM_SYSTEM_CRMD, NULL); vote 313 lib/cluster/election.c crm_xml_add(vote, F_CRM_ELECTION_OWNER, our_node->uuid); vote 314 lib/cluster/election.c crm_xml_add_int(vote, F_CRM_ELECTION_ID, e->count); vote 317 lib/cluster/election.c crm_xml_add_timeval(vote, F_CRM_ELECTION_AGE_S, F_CRM_ELECTION_AGE_US, &age); vote 319 lib/cluster/election.c send_cluster_message(NULL, crm_msg_crmd, vote, TRUE); vote 320 lib/cluster/election.c free_xml(vote); vote 423 lib/cluster/election.c struct vote *vote) vote 425 lib/cluster/election.c CRM_CHECK(message && vote, return FALSE); vote 427 lib/cluster/election.c vote->election_id = -1; vote 428 lib/cluster/election.c vote->age.tv_sec = -1; vote 429 lib/cluster/election.c vote->age.tv_usec = -1; vote 431 lib/cluster/election.c vote->op = crm_element_value(message, F_CRM_TASK); vote 432 lib/cluster/election.c vote->from = crm_element_value(message, F_CRM_HOST_FROM); vote 433 lib/cluster/election.c vote->version = crm_element_value(message, F_CRM_VERSION); vote 434 lib/cluster/election.c vote->election_owner = crm_element_value(message, F_CRM_ELECTION_OWNER); vote 436 lib/cluster/election.c crm_element_value_int(message, F_CRM_ELECTION_ID, &(vote->election_id)); vote 438 lib/cluster/election.c if ((vote->op == NULL) || (vote->from == NULL) || (vote->version == NULL) vote 439 lib/cluster/election.c || (vote->election_owner == NULL) || (vote->election_id < 0)) { vote 442 lib/cluster/election.c (vote->op? vote->op : "election"), vote 443 lib/cluster/election.c (vote->from? vote->from : "unspecified node"), vote 450 lib/cluster/election.c if (pcmk__str_eq(vote->op, CRM_OP_VOTE, pcmk__str_none)) { vote 453 lib/cluster/election.c F_CRM_ELECTION_AGE_US, &(vote->age)); vote 454 lib/cluster/election.c if ((vote->age.tv_sec < 0) || (vote->age.tv_usec < 0)) { vote 456 lib/cluster/election.c (e? e->name : "election"), vote->op, vote->from); vote 460 lib/cluster/election.c } else if (!pcmk__str_eq(vote->op, CRM_OP_NOVOTE, pcmk__str_none)) { vote 462 lib/cluster/election.c (e? e->name : "election"), vote->from, vote->op); vote 470 lib/cluster/election.c vote->op, vote->from); vote 479 lib/cluster/election.c e->name, vote->op, vote->from); vote 486 lib/cluster/election.c record_vote(election_t *e, struct vote *vote) vote 491 lib/cluster/election.c CRM_ASSERT(e && vote && vote->from && vote->op); vote 496 lib/cluster/election.c voter_copy = strdup(vote->from); vote 497 lib/cluster/election.c vote_copy = strdup(vote->op); vote 504 lib/cluster/election.c send_no_vote(crm_node_t *peer, struct vote *vote) vote 508 lib/cluster/election.c xmlNode *novote = create_request(CRM_OP_NOVOTE, NULL, vote->from, vote 511 lib/cluster/election.c crm_xml_add(novote, F_CRM_ELECTION_OWNER, vote->election_owner); vote 512 lib/cluster/election.c crm_xml_add_int(novote, F_CRM_ELECTION_ID, vote->election_id); vote 543 lib/cluster/election.c struct vote vote; vote 546 lib/cluster/election.c if (parse_election_message(e, message, &vote) == FALSE) { vote 550 lib/cluster/election.c your_node = crm_get_peer(0, vote.from); vote 553 lib/cluster/election.c && pcmk__str_eq(our_node->uuid, vote.election_owner, vote 565 lib/cluster/election.c } else if (we_are_owner && (vote.election_id != e->count)) { vote 576 lib/cluster/election.c } else if (pcmk__str_eq(vote.op, CRM_OP_NOVOTE, pcmk__str_none) vote 577 lib/cluster/election.c || pcmk__str_eq(vote.from, e->uname, pcmk__str_none)) { vote 583 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from, vote 584 lib/cluster/election.c vote.election_owner); vote 590 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from); vote 593 lib/cluster/election.c record_vote(e, &vote); vote 599 lib/cluster/election.c int age_result = compare_age(vote.age); vote 600 lib/cluster/election.c int version_result = compare_version(vote.version, CRM_FEATURE_SET); vote 616 lib/cluster/election.c } else if (strcasecmp(e->uname, vote.from) > 0) { vote 661 lib/cluster/election.c e->name, vote.election_id, vote.op, e->count, vote.from, vote 683 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, vote 684 lib/cluster/election.c vote.from, reason); vote 701 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.from, vote 709 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, vote 710 lib/cluster/election.c vote.from, reason); vote 713 lib/cluster/election.c send_no_vote(your_node, &vote);