mco_HA_cancel

This function instantly interrupts the replication processing.

For an overview see page HA Applications

Prototype

 
    void	mco_HA_cancel (	const char* cancel_addr,
                    timer_unit timeout)
 

Arguments

cancel_addr The connection string for "client" socket, corresponding to mco_HA_replica_params_t cancelpoint_addr, e.g. "127.0.0.1:9999"

timeout

The time window to connect to the cancel socket.

Description

This function is called by the replica to instantly interrupt replication processing. This causes the mco_HA_attach_master() to return immediately.

Return Codes

MCO_S_OK Successful.
MCO_E_NW_INVADDR The cancel_addr doesn't contain valid connection string
MCO_E_NW_TIMEOUT Unable to connect to cancel socket within timeout period
MCO_E_NW_SOCKET Error in socket() syscall.
MCO_E_NW_SOCKOPT Error in setsocket() syscall.
MCO_E_NW_SOCKIOCTL Error in ioctl() syscall.
MCO_E_NW_SELECT Error in select() syscall.
MCO_E_NW_CONNECT Error in connect() syscall.