mco_cluster_info

This function returns statistics that are maintained for network and cluster levels.

For an overview see page Cluster Applications in C

Prototype

    MCO_RET mco_cluster_info ( /*IN*/ mco_db_h db,
                               /*OUT*/ mco_cluster_info_t* cl_info )

Arguments

db
Connection to the database.
cl_info
The address of a mco_cluster_info_t structure.

Description

This function returns statistics that are maintained for network and cluster levels in the following structure: (Note: The two elements rtrans_commit and rtrans_rback ignore "local" transactions (those that were initiated on this node.)

Return Codes

MCO_S_OK
Cluster info returned successfully.
MCO_E_CLUSTER_NOT_INITIALIZED
The database was not created by mco_cluster_db_open(). Note: it may have been created by mco_db_open_dev() by mistake.

Files

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