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_internal.h enum election_result election_count_vote(election_t *e, xmlNode *vote, bool can_win); vote 292 lib/cluster/election.c xmlNode *vote = NULL; vote 309 lib/cluster/election.c vote = create_request(CRM_OP_VOTE, NULL, NULL, CRM_SYSTEM_CRMD, CRM_SYSTEM_CRMD, NULL); vote 312 lib/cluster/election.c crm_xml_add(vote, F_CRM_ELECTION_OWNER, our_node->uuid); vote 313 lib/cluster/election.c crm_xml_add_int(vote, F_CRM_ELECTION_ID, e->count); vote 316 lib/cluster/election.c crm_xml_add_timeval(vote, F_CRM_ELECTION_AGE_S, F_CRM_ELECTION_AGE_US, &age); vote 318 lib/cluster/election.c send_cluster_message(NULL, crm_msg_crmd, vote, TRUE); vote 319 lib/cluster/election.c free_xml(vote); vote 421 lib/cluster/election.c parse_election_message(election_t *e, xmlNode *message, struct vote *vote) vote 423 lib/cluster/election.c CRM_CHECK(message && vote, return FALSE); vote 425 lib/cluster/election.c vote->election_id = -1; vote 426 lib/cluster/election.c vote->age.tv_sec = -1; vote 427 lib/cluster/election.c vote->age.tv_usec = -1; vote 429 lib/cluster/election.c vote->op = crm_element_value(message, F_CRM_TASK); vote 430 lib/cluster/election.c vote->from = crm_element_value(message, F_CRM_HOST_FROM); vote 431 lib/cluster/election.c vote->version = crm_element_value(message, F_CRM_VERSION); vote 432 lib/cluster/election.c vote->election_owner = crm_element_value(message, F_CRM_ELECTION_OWNER); vote 434 lib/cluster/election.c crm_element_value_int(message, F_CRM_ELECTION_ID, &(vote->election_id)); vote 436 lib/cluster/election.c if ((vote->op == NULL) || (vote->from == NULL) || (vote->version == NULL) vote 437 lib/cluster/election.c || (vote->election_owner == NULL) || (vote->election_id < 0)) { vote 440 lib/cluster/election.c (vote->op? vote->op : "election"), vote 441 lib/cluster/election.c (vote->from? vote->from : "unspecified node"), vote 448 lib/cluster/election.c if (pcmk__str_eq(vote->op, CRM_OP_VOTE, pcmk__str_none)) { vote 451 lib/cluster/election.c F_CRM_ELECTION_AGE_US, &(vote->age)); vote 452 lib/cluster/election.c if ((vote->age.tv_sec < 0) || (vote->age.tv_usec < 0)) { vote 454 lib/cluster/election.c (e? e->name : "election"), vote->op, vote->from); vote 458 lib/cluster/election.c } else if (!pcmk__str_eq(vote->op, CRM_OP_NOVOTE, pcmk__str_none)) { vote 460 lib/cluster/election.c (e? e->name : "election"), vote->from, vote->op); vote 468 lib/cluster/election.c vote->op, vote->from); vote 477 lib/cluster/election.c e->name, vote->op, vote->from); vote 484 lib/cluster/election.c record_vote(election_t *e, struct vote *vote) vote 489 lib/cluster/election.c CRM_ASSERT(e && vote && vote->from && vote->op); vote 494 lib/cluster/election.c voter_copy = strdup(vote->from); vote 495 lib/cluster/election.c vote_copy = strdup(vote->op); vote 502 lib/cluster/election.c send_no_vote(crm_node_t *peer, struct vote *vote) vote 506 lib/cluster/election.c xmlNode *novote = create_request(CRM_OP_NOVOTE, NULL, vote->from, vote 509 lib/cluster/election.c crm_xml_add(novote, F_CRM_ELECTION_OWNER, vote->election_owner); vote 510 lib/cluster/election.c crm_xml_add_int(novote, F_CRM_ELECTION_ID, vote->election_id); vote 541 lib/cluster/election.c struct vote vote; vote 544 lib/cluster/election.c if (parse_election_message(e, message, &vote) == FALSE) { vote 548 lib/cluster/election.c your_node = crm_get_peer(0, vote.from); vote 551 lib/cluster/election.c && pcmk__str_eq(our_node->uuid, vote.election_owner, vote 563 lib/cluster/election.c } else if (we_are_owner && (vote.election_id != e->count)) { vote 574 lib/cluster/election.c } else if (pcmk__str_eq(vote.op, CRM_OP_NOVOTE, pcmk__str_none) vote 575 lib/cluster/election.c || pcmk__str_eq(vote.from, e->uname, pcmk__str_none)) { vote 581 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from, vote 582 lib/cluster/election.c vote.election_owner); vote 588 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from); vote 591 lib/cluster/election.c record_vote(e, &vote); vote 597 lib/cluster/election.c int age_result = compare_age(vote.age); vote 598 lib/cluster/election.c int version_result = compare_version(vote.version, CRM_FEATURE_SET); vote 614 lib/cluster/election.c } else if (strcasecmp(e->uname, vote.from) > 0) { vote 659 lib/cluster/election.c e->name, vote.election_id, vote.op, e->count, vote.from, vote 681 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, vote 682 lib/cluster/election.c vote.from, reason); vote 699 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.from, vote 707 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, vote 708 lib/cluster/election.c vote.from, reason); vote 711 lib/cluster/election.c send_no_vote(your_node, &vote);