home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextLibrary / Documentation / Sybase / DBLIB / Section3 / remove_xact.nr < prev    next >
Encoding:
Text File  |  1993-04-22  |  1.0 KB  |  40 lines

  1. .Na "remove_xact" 
  2. .Aa
  3. .Fu
  4. Decrement the count of sites still active in the distributed transaction.
  5. .Ih "distributed transaction, decrementing active sites"
  6. .Sy
  7. .Sf "RETCODE remove_xact(connect, commid, n)
  8. .Sp "DBPROCESS" "*connect"
  9. .Sp "DBINT" "commid"
  10. .Sp "int" "n"
  11. .Co
  12. .Bl
  13. The commit service keeps a count of the number of sites participating
  14. in
  15. a distributed transaction.
  16. This routine informs the commit service that one or more sites has
  17. done a local commit or abort on the transaction and is
  18. hence no longer participating.
  19. The commit service removes
  20. the sites from the transaction by decrementing the count of sites.
  21. The transaction record is deleted entirely if the count drops to zero.
  22. .Bz
  23. .Pa
  24. .Pi connect
  25. A pointer to the DBPROCESS used to communicate with the commit service.
  26. .Pi commid
  27. The \f2commid\fP used to identify the transaction to the commit service.
  28. .Pi n
  29. The number of sites to remove from the transaction.
  30. .in -.375i
  31. .Re
  32. .br
  33. SUCCEED or FAIL.
  34. .Sa
  35. abort_xact,
  36. commit_xact,
  37. scan_xact,
  38. start_xact,
  39. stat_xact
  40.