This function is called by the master to set the HA quorum at runtime.
uint4 mco_HA_set_quorum(mco_db_h db, mco_uint2 quorum);
| db | The database handle |
| quorum | The number of active replicas that is acceptable (including 0) |
This function is called by the master to set the HA quorum at runtime. Note that a value of quorum greater than 0 is allowed only for synchronous replication mode.
| MCO_S_OK | Set successfully |
| MCO_E_HA_NOT_INITIALIZED | HA is not initialized |
| MCO_E_NOT_MASTER | This is not a master |
| MCO_E_HA_INVALID_PARAMETER | quorum value is incorrect |