# mco_cluster_gather

This function gathers updates of “distributed” objects on other network nodes.

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

### Prototype

        MCO_RET	mco_cluster_gather (	/*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 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”).

### Return Codes

MCO_S_OK | Cluster updated successfully.
MCO_E_CONFLICT | A conflict occurred; no distributed updates committed locally.

### Files

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