This function detaches (disconnects) all connected replicas.
MCO_RET mco_HA_detach_all_replicas ( mco_db_h db )
| db | Connection handle to master database |
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().
| 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. |