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 acceptable number of active replicas, 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
The quorum was set successfully.
MCO_E_HA_NOT_INITIALIZED
HA is not initialized.
MCO_E_NOT_MASTER
The database is not a master.
MCO_E_HA_INVALID_PARAMETER
The quorum value is incorrect.