This function returns information about the active nodes in a cluster.
MCO_RET mco_cluster_get_active_nodes ( /*IN*/ mco_db_h db,
/*OUT*/ mco_cluster_node_info_t* nodes_info ,
/*IN/OUT*/ uint2 n_nodes_info )
| db | Connection to the database. |
| nodes_info | Array of mco_cluster_node_info_t structures which contain information about the active nodes: |
| n_nodes_info | In input determines the length of the nodes_info array (how many elements were allocated), on output contains the number of filled elements |
This function returns information about the active nodes in a cluster. (Note: To determine the number of active nodes (and allocate the right size nodes_info array) the application can call mco_cluster_info(db, &cl_info) and use the value of cl_info.n_active_nodes.)
| MCO_S_OK | Nodes info returned successfully. |
| MCO_S_OVERFLOW | If nodes_info does not have enough elements for the number of active nodes in the cluster |