This sample demonstrates the use of flags
MCO_TRANSLOG_ITERABLE
andMCO_TRANSLOG_PIPE
to transfer the log through a pipe to another thread or another application and iterate the log on the reader side. (Note the use of runtime optionMCO_RT_OPTION_MARK_LAST_OBJ
which makes an additional call to the user defined callback indicating that the current transaction has completed.)
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:tlogiterpipeBut it is more instructive to run it in your development environment debugger, stepping through the code.