This sample sets the transaction commit policy. The application demonstrates the use of function
mco_disk_transaction_policy()
and the different behavior with the three commit policiesMCO_COMMIT_BUFFERED
,MCO_COMMIT_NO_SYNC
andMCO_COMMIT_SYNC_FLUSH
.
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:07_transactions_policyBut it is more instructive to run it in your development environment debugger, stepping through the code.