This function detaches (disconnects) the replica identified by the channel pointer.
MCO_RET mco_HA_detach_replica(mco_db_h db,
mco_channel_h chan)
db
chan
mco_HA_get_io_channel()).This function detaches (disconnects) the replica identified by the channel pointer chan. It also
performs necessary cleanup. On the replica side, mco_nw_attach_master()
returns with stop_reason == MCO_HA_REPLICA_MASTER_REQUESTED_DISCONNECT.
MCO_S_OK
MCO_E_HA_NOT_INITIALIZED
mco_HA_start() must be called first.MCO_E_HA_INVCHANNEL
MCO_E_HA_IOERROR
DETACH message to the replica.