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              292 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, PCMK__XA_ELECTION_OWNER, our_node->uuid);
vote              314 lib/cluster/election.c     crm_xml_add_int(vote, PCMK__XA_ELECTION_ID, e->count);
vote              318 lib/cluster/election.c     crm_xml_add_timeval(vote, PCMK__XA_ELECTION_AGE_SEC,
vote              321 lib/cluster/election.c     pcmk__cluster_send_message(NULL, crm_msg_crmd, vote);
vote              322 lib/cluster/election.c     free_xml(vote);
vote              425 lib/cluster/election.c                        struct vote *vote)
vote              427 lib/cluster/election.c     CRM_CHECK(message && vote, return FALSE);
vote              429 lib/cluster/election.c     vote->election_id = -1;
vote              430 lib/cluster/election.c     vote->age.tv_sec = -1;
vote              431 lib/cluster/election.c     vote->age.tv_usec = -1;
vote              433 lib/cluster/election.c     vote->op = crm_element_value(message, PCMK__XA_CRM_TASK);
vote              434 lib/cluster/election.c     vote->from = crm_element_value(message, PCMK__XA_SRC);
vote              435 lib/cluster/election.c     vote->version = crm_element_value(message, PCMK_XA_VERSION);
vote              436 lib/cluster/election.c     vote->election_owner = crm_element_value(message, PCMK__XA_ELECTION_OWNER);
vote              438 lib/cluster/election.c     crm_element_value_int(message, PCMK__XA_ELECTION_ID, &(vote->election_id));
vote              440 lib/cluster/election.c     if ((vote->op == NULL) || (vote->from == NULL) || (vote->version == NULL)
vote              441 lib/cluster/election.c         || (vote->election_owner == NULL) || (vote->election_id < 0)) {
vote              444 lib/cluster/election.c                  (vote->op? vote->op : "election"),
vote              445 lib/cluster/election.c                  (vote->from? vote->from : "unspecified node"),
vote              452 lib/cluster/election.c     if (pcmk__str_eq(vote->op, CRM_OP_VOTE, pcmk__str_none)) {
vote              457 lib/cluster/election.c                                   PCMK__XA_ELECTION_AGE_NANO_SEC, &(vote->age));
vote              458 lib/cluster/election.c         if ((vote->age.tv_sec < 0) || (vote->age.tv_usec < 0)) {
vote              460 lib/cluster/election.c                      (e? e->name : "election"), vote->op, vote->from);
vote              464 lib/cluster/election.c     } else if (!pcmk__str_eq(vote->op, CRM_OP_NOVOTE, pcmk__str_none)) {
vote              466 lib/cluster/election.c                  (e? e->name : "election"), vote->from, vote->op);
vote              474 lib/cluster/election.c                  vote->op, vote->from);
vote              483 lib/cluster/election.c                  e->name, vote->op, vote->from);
vote              490 lib/cluster/election.c record_vote(election_t *e, struct vote *vote)
vote              492 lib/cluster/election.c     pcmk__assert(e && vote && vote->from && vote->op);
vote              497 lib/cluster/election.c     pcmk__insert_dup(e->voted, vote->from, vote->op);
vote              501 lib/cluster/election.c send_no_vote(crm_node_t *peer, struct vote *vote)
vote              505 lib/cluster/election.c     xmlNode *novote = create_request(CRM_OP_NOVOTE, NULL, vote->from,
vote              508 lib/cluster/election.c     crm_xml_add(novote, PCMK__XA_ELECTION_OWNER, vote->election_owner);
vote              509 lib/cluster/election.c     crm_xml_add_int(novote, PCMK__XA_ELECTION_ID, vote->election_id);
vote              540 lib/cluster/election.c     struct vote vote;
vote              543 lib/cluster/election.c     if (parse_election_message(e, message, &vote) == FALSE) {
vote              547 lib/cluster/election.c     your_node = pcmk__get_node(0, vote.from, NULL,
vote              552 lib/cluster/election.c                    && pcmk__str_eq(our_node->uuid, vote.election_owner,
vote              564 lib/cluster/election.c     } else if (we_are_owner && (vote.election_id != e->count)) {
vote              575 lib/cluster/election.c     } else if (pcmk__str_eq(vote.op, CRM_OP_NOVOTE, pcmk__str_none)
vote              576 lib/cluster/election.c                || pcmk__str_eq(vote.from, e->uname, pcmk__str_none)) {
vote              582 lib/cluster/election.c                      e->name, vote.election_id, vote.op, vote.from,
vote              583 lib/cluster/election.c                      vote.election_owner);
vote              589 lib/cluster/election.c                       e->name, vote.election_id, vote.op, vote.from);
vote              592 lib/cluster/election.c         record_vote(e, &vote);
vote              598 lib/cluster/election.c         int age_result = compare_age(vote.age);
vote              599 lib/cluster/election.c         int version_result = compare_version(vote.version, CRM_FEATURE_SET);
vote              615 lib/cluster/election.c         } else if (strcasecmp(e->uname, vote.from) > 0) {
vote              660 lib/cluster/election.c                    e->name, vote.election_id, vote.op, e->count, vote.from,
vote              682 lib/cluster/election.c                        e->name, vote.election_id, vote.election_owner, vote.op,
vote              683 lib/cluster/election.c                        vote.from, reason);
vote              700 lib/cluster/election.c                      e->name, vote.election_id, vote.election_owner, vote.from,
vote              708 lib/cluster/election.c                e->name, vote.election_id, vote.election_owner, vote.op,
vote              709 lib/cluster/election.c                vote.from, reason);
vote              712 lib/cluster/election.c     send_no_vote(your_node, &vote);