db2xa_recover()--Recover XA Transaction Branches (Job Scoped Locks)


  Syntax
 #include <xa.h>

 int db2xa_switch.xa_recover_entry(XID *xids,     
     long count, int rmid, long flags);

  Default Public Authority: *USE

  Service Program: QTNXADTP

  Threadsafe: Yes

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.


Example

Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.

#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);
}


API introduced: V4R3

[ Back to top | UNIX-Type APIs | APIs by category ]