This function gathers updates of “distributed” objects on other network nodes.
MCO_RET mco_cluster_gather ( /*IN*/ mco_db_h db, uint2 * class_codes, uint2 n_class_codes, uint2 * node_ids, uint2 n_node_ids)
db | Connection to the database |
This function is called when the application is ready to receive changes to “distributed” objects on other nodes in the Cluster. The array class_codes
contains the list of “distributed” classes to be gathered and the array node_ids
specifies which nodes to collect the data from.
mco_db_gather(db, 0,0,0,0)
indicates collect (gather) updates from all classes from all nodes (zero means “all”).
MCO_S_OK | Cluster updated successfully. |
MCO_E_CONFLICT | A conflict occurred; no distributed updates committed locally. |