18 #include "trp_node.hpp"
23 compatible = nfCompleteRep =
true;
24 m_connected = defined = m_alive = m_api_reg_conf = m_node_fail_rep =
false;
25 bzero(&m_state,
sizeof(m_state));
32 trp_node::operator==(
const trp_node& other)
const
34 return (compatible == other.compatible &&
35 nfCompleteRep == other.nfCompleteRep &&
36 m_connected == other.m_connected &&
37 defined == other.defined &&
38 m_alive == other.m_alive &&
39 m_api_reg_conf == other.m_api_reg_conf &&
40 m_node_fail_rep == other.m_node_fail_rep &&
41 minDbVersion == other.minDbVersion &&
42 memcmp(&m_state, &other.m_state,
sizeof(m_state)) == 0);
46 operator<<(NdbOut& out,
const trp_node&
n)
49 <<
"defined: " << n.defined
50 <<
", compatible: " << n.compatible
51 <<
", connected: " << n.m_connected
52 <<
", api_reg_conf: " << n.m_api_reg_conf
53 <<
", alive: " << n.m_alive
54 <<
", nodefailrep: " << n.m_node_fail_rep
55 <<
", nfCompleteRep: " << n.nfCompleteRep
56 <<
", minDbVersion: " << n.minDbVersion
57 <<
", state: " << n.m_state
59 << BaseString::getPrettyTextShort(n.m_state.m_connected_nodes).
c_str()