# mco_HA_get_mode

This function returns the MCO_HAMODE_* value specified for this database.

### For an overview see page HA Applications

### Prototype

        uint4	mco_HA_get_mode(	mco_db_h db);

### Arguments

db | The database handle

### Description

This function returns the mode specified in the `mco_HA_master_params_t` or the ``mco_HA_replica_params_t`` structure when this database was opened.

### Return Codes

uint4 | The MCO_HAMODE_* value for this database