#include <xa.h> int db2xa_switch.xa_recover_entry(XID *xids, long count, int rmid, long flags);
A transaction manager calls db2xa_recover() during recovery to obtain a list of transaction branches that are currently in a prepared or heuristically completed state. Multiple calls to this function can be made in a single recovery scan. The flags parameter defines when a recovery scan should start or end.
For additional information about parameters, authorities required, return values, and error conditions, see the xa_recover() API.
See Code disclaimer information for information pertaining to code examples.
#include <xa.h> main() { XID xids[10]; int rmid; long count=10; long flags=TMSTARTRSCAN+TMENDRSCAN; int retcode; extern struct xa_switch_t db2xa_switch; retcode = db2xa_switch.xa_recover_entry(xids, count, rmid, flags); }
Top | UNIX-Type APIs | APIs by category |