mco_HA_enable_filter

This function turns on/off partial replication.

For an overview see page HA Applications

Prototype

 
    void	mco_HA_enable_filter (	Mco_db_h db,
                    Mco_bool enable)
     

Arguments

db The database connection handle.

enable

MCO_YES or MCO_NO to turn partial replication on or off.

Description

This function is called by either the master or replica to turn on/off partial replication. If local tables are defined, filtering is on by default. Consequently mco_HA_enable_filter(db, MCO_NO); turns filtering off. If the schema does not define local tables, this function has no effect.

Return Codes

MCO_S_OK Successful.