FairCom Corporation


F.2 AbortXtd


Abort the current transaction in progress (extended version).

Short Name

TRANABTX

TYPE

Low-level function

DECLARATION

COUNT AbortXtd(COUNT lokmod)

DESCRIPTION

AbortXtd is an extended version of Abort that permits control of locks on abort. AbortXtd accepts mode arguments similar to Commit. The available modes are:

ctFREE
Releases all locks. Identical to Abort. Clears the LockISAM state.
ctKEEP
Does not clear the LockISAM state and keeps all the locks acquired before and during an active transaction.
ctKEEP_OUT
Releases only locks obtained within the transaction and/or locks on records updated within the transaction. Does not clear the LockISAM state.
ctKEEP_OUT_ALL
Unconditionally keep all locks that were acquired before the transaction began. Free locks obtained within the transaction. Does not clear the LockISAM state.

RETURN

Value
Symbolic Constant
Explanation
0
NO_ERROR
No error occured.
71
TNON_ERR
There is no active transaction pending.

See Appendix A "c-tree Plus Error Codes" of the c-tree Plus Programmer's Reference Guide for a complete listing of valid c-tree Plus error values.

SEE ALSO

Abort and Commit.


FairCom Corporation
www.faircom.com