Example #1
0
void
ClusterMgr::set_node_dead(trp_node& theNode)
{
    set_node_alive(theNode, false);
    theNode.set_confirmed(false);
    theNode.m_state.m_connected_nodes.clear();
    theNode.m_state.startLevel = NodeState::SL_NOTHING;
    theNode.m_info.m_connectCount ++;
    theNode.nfCompleteRep = false;
}
Example #2
0
void
ClusterMgr::print_nodes(const char* where, NdbOut& out)
{
    out << where << " >>" << endl;
    for (NodeId n = 1; n < MAX_NODES ; n++)
    {
        const trp_node node = getNodeInfo(n);
        if (!node.defined)
            continue;
        out << "node: " << n << endl;
        out << " -";
        out << " connected: " << node.is_connected();
        out << ", compatible: " << node.compatible;
        out << ", nf_complete_rep: " << node.nfCompleteRep;
        out << ", alive: " << node.m_alive;
        out << ", confirmed: " << node.is_confirmed();
        out << endl;

        out << " - " << node.m_info << endl;
        out << " - " << node.m_state << endl;
    }
    out << "<<" << endl;
}
Example #3
0
 bool found_ok(const SignalSender& ss, const trp_node & node) {
     return node.is_connected();
 }