mco_HA_set_quorum

This function is called by the master to set the HA quorum at runtime.

Prototype

 
    uint4	mco_HA_set_quorum(mco_db_h db, mco_uint2 quorum);
 

Arguments

db The database handle
quorum The number of active replicas that is acceptable (including 0)

Description

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.

Return Codes

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