HA_Cancel

This sample demonstrates the eXtremeDB High Availability cancellation feature. The replica creates a cancellation socket and starts a cancel thread. It then creates duplicates of the master database, synchronizes them with the master database, and receives commit data from the master to perform replication. After 10 seconds, the replica calls the mco_HA_cancel() function to terminate replication.

How to Run

See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the \target\bin directory.

In a console window run:

    hacancel_master

Then in a second console window run:

    hacancel_replica

But it is more instructive to run one instance in your development environment debugger, stepping through the code.

Related Topics Link IconRelated Topics