This function sends updated “distributed” objects to the specific distributed classes on other network nodes.
MCO_RET mco_cluster_scatter( /*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 distribute changes to “distributed” objects in its local cache to other nodes in the Cluster. The array
class_codes
contains the list of “distributed” classes to be distributed and the arraynode_ids
specifies which nodes will receive the data.
MCO_S_OK | Cluster updated successfully |
MCO_E_CONFLICT | A conflict occurred; all distributed updates rolled back |