mco_HA_detach_all_replicas

This function detaches (disconnects) all connected replicas.

For an overview see page HA Applications

Prototype

 
    MCO_RET	mco_HA_detach_all_replicas (	mco_db_h db )
 

Arguments

db Connection handle to master database

Description

This function detaches (disconnects) all connected replicas. On the replica side, mco_HA_attach_master() will return with stop_reason == MCO_HA_REPLICA_MASTER_REQUESTED_DISCONNECT. This function is implicitly called by mco_HA_stop().

Return Codes

MCO_S_OK Successful.
MCO_E_HA_NOT_INITIALIZED The HA subsystem has not been initialized – the function mco_HA_start() must be called first.
MCO_E_HA_IOERROR The master was unable to send the DETACH message to the replica.