vote 138 daemons/controld/controld_election.c ha_msg_input_t *vote = fsa_typed_data(fsa_dt_ha_msg); vote 147 daemons/controld/controld_election.c rc = election_count_vote(fsa_election, vote->msg, cur_state != S_STARTING); vote 78 include/crm/cluster/election.h enum election_result election_count_vote(election_t *e, xmlNode *vote, bool can_win); vote 286 lib/cluster/election.c xmlNode *vote = NULL; vote 303 lib/cluster/election.c vote = create_request(CRM_OP_VOTE, NULL, NULL, CRM_SYSTEM_CRMD, CRM_SYSTEM_CRMD, NULL); vote 306 lib/cluster/election.c crm_xml_add(vote, F_CRM_ELECTION_OWNER, our_node->uuid); vote 307 lib/cluster/election.c crm_xml_add_int(vote, F_CRM_ELECTION_ID, e->count); vote 310 lib/cluster/election.c crm_xml_add_timeval(vote, F_CRM_ELECTION_AGE_S, F_CRM_ELECTION_AGE_US, &age); vote 312 lib/cluster/election.c send_cluster_message(NULL, crm_msg_crmd, vote, TRUE); vote 313 lib/cluster/election.c free_xml(vote); vote 415 lib/cluster/election.c parse_election_message(election_t *e, xmlNode *message, struct vote *vote) vote 417 lib/cluster/election.c CRM_CHECK(message && vote, return FALSE); vote 419 lib/cluster/election.c vote->election_id = -1; vote 420 lib/cluster/election.c vote->age.tv_sec = -1; vote 421 lib/cluster/election.c vote->age.tv_usec = -1; vote 423 lib/cluster/election.c vote->op = crm_element_value(message, F_CRM_TASK); vote 424 lib/cluster/election.c vote->from = crm_element_value(message, F_CRM_HOST_FROM); vote 425 lib/cluster/election.c vote->version = crm_element_value(message, F_CRM_VERSION); vote 426 lib/cluster/election.c vote->election_owner = crm_element_value(message, F_CRM_ELECTION_OWNER); vote 428 lib/cluster/election.c crm_element_value_int(message, F_CRM_ELECTION_ID, &(vote->election_id)); vote 430 lib/cluster/election.c if ((vote->op == NULL) || (vote->from == NULL) || (vote->version == NULL) vote 431 lib/cluster/election.c || (vote->election_owner == NULL) || (vote->election_id < 0)) { vote 434 lib/cluster/election.c (vote->op? vote->op : "election"), vote 435 lib/cluster/election.c (vote->from? vote->from : "unspecified node"), vote 442 lib/cluster/election.c if (pcmk__str_eq(vote->op, CRM_OP_VOTE, pcmk__str_none)) { vote 445 lib/cluster/election.c F_CRM_ELECTION_AGE_US, &(vote->age)); vote 446 lib/cluster/election.c if ((vote->age.tv_sec < 0) || (vote->age.tv_usec < 0)) { vote 448 lib/cluster/election.c (e? e->name : "election"), vote->op, vote->from); vote 452 lib/cluster/election.c } else if (!pcmk__str_eq(vote->op, CRM_OP_NOVOTE, pcmk__str_none)) { vote 454 lib/cluster/election.c (e? e->name : "election"), vote->from, vote->op); vote 462 lib/cluster/election.c vote->op, vote->from); vote 471 lib/cluster/election.c e->name, vote->op, vote->from); vote 478 lib/cluster/election.c record_vote(election_t *e, struct vote *vote) vote 483 lib/cluster/election.c CRM_ASSERT(e && vote && vote->from && vote->op); vote 488 lib/cluster/election.c voter_copy = strdup(vote->from); vote 489 lib/cluster/election.c vote_copy = strdup(vote->op); vote 496 lib/cluster/election.c send_no_vote(crm_node_t *peer, struct vote *vote) vote 500 lib/cluster/election.c xmlNode *novote = create_request(CRM_OP_NOVOTE, NULL, vote->from, vote 503 lib/cluster/election.c crm_xml_add(novote, F_CRM_ELECTION_OWNER, vote->election_owner); vote 504 lib/cluster/election.c crm_xml_add_int(novote, F_CRM_ELECTION_ID, vote->election_id); vote 535 lib/cluster/election.c struct vote vote; vote 538 lib/cluster/election.c if (parse_election_message(e, message, &vote) == FALSE) { vote 542 lib/cluster/election.c your_node = crm_get_peer(0, vote.from); vote 545 lib/cluster/election.c && pcmk__str_eq(our_node->uuid, vote.election_owner, vote 557 lib/cluster/election.c } else if (we_are_owner && (vote.election_id != e->count)) { vote 568 lib/cluster/election.c } else if (pcmk__str_eq(vote.op, CRM_OP_NOVOTE, pcmk__str_none) vote 569 lib/cluster/election.c || pcmk__str_eq(vote.from, e->uname, pcmk__str_none)) { vote 575 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from, vote 576 lib/cluster/election.c vote.election_owner); vote 582 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from); vote 585 lib/cluster/election.c record_vote(e, &vote); vote 591 lib/cluster/election.c int age_result = crm_compare_age(vote.age); vote 592 lib/cluster/election.c int version_result = compare_version(vote.version, CRM_FEATURE_SET); vote 608 lib/cluster/election.c } else if (strcasecmp(e->uname, vote.from) > 0) { vote 653 lib/cluster/election.c e->name, vote.election_id, vote.op, e->count, vote.from, vote 675 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, vote 676 lib/cluster/election.c vote.from, reason); vote 693 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.from, vote 701 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, vote 702 lib/cluster/election.c vote.from, reason); vote 705 lib/cluster/election.c send_no_vote(your_node, &vote);