The cmm_node_getid() function retrieves a nodeid. This value is accessible even if no master is currently
elected. Using the nodeid, the node can retrieve information
on its status in the cluster.
The me parameter is a pointer to a cmm_nodeid_t structure. If an error occurs, me
contains CMM_INVALID_NODE_ID and the returned value shows
the cause of the error.
Note This function is not related to cluster information and so it
can be called from any peer node, even a node with the CMM_OUT_OF_CLUSTER state.