# mco_cluster_scatter

This function sends updated “distributed” objects to the specific distributed classes on other network nodes.

### For an overview see page Cluster Applications in C

### Prototype

        MCO_RET	mco_cluster_scatter(	/*IN*/ mco_db_h db,
                         uint2 * class_codes,
                         uint2 n_class_codes,
                         uint2 * node_ids,
                         uint2 n_node_ids)

### Arguments

db | Connection to the database

### Description

> 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 array `node_ids` specifies which nodes will receive the data.

### Return Codes

MCO_S_OK | Cluster updated successfully
MCO_E_CONFLICT | A conflict occurred; all distributed updates rolled back

### Files

Header file:
mcocluster.h
Source file:
mcocluster.c
Library:
libmcocluster.a