rdmtransapi.h File Reference

Header for the RDM Transaction APIs. More...

#include "rdmtypes.h"
Include dependency graph for rdmtransapi.h:
This graph shows which files directly or indirectly include this file:

Functions

RDM_RETCODE rdm_transEnd (RDM_TRANS trans)
End a transactional operation. More...
RDM_RETCODE rdm_transEndRollback (RDM_TRANS trans)
End a transactional operation with a rollback. More...
RDM_RETCODE rdm_transFree (RDM_TRANS hTrans)
Free a transaction handle. More...
RDM_RETCODE rdm_transPrecommit (RDM_TRANS trans)
Precommit a transactional operation. More...
RDM_RETCODE rdm_transRollback (RDM_TRANS hTrans)
Rollback transactional operations. More...

Detailed Description

Header for the RDM Transaction APIs.

Function Documentation

rdm_transRollback()

RDM_RETCODE rdm_transRollback ( RDM_TRANS hTrans )

Rollback transactional operations.

rdm_transRollback() will rollback a transaction up to the specified transaction point. All changes made to the database will be reverted, but any locks granted when the hTrans was started will remain. Locks that were granted to any transactions nested from hTrans will be freed. If a handle to subsequent transaction points was kept it should be discarded as the used of an invalided transaction handle is undefined.

hTrans will remain and updates can continue to be applied to it.

Return values
sOKAY Normal, successful return.
See also
rdm_dbStartUpdate
rdm_dbStartRead
rdm_dbStartSnapshot
rdm_transEndRollback
Parameters
[in] hTrans [in] A valid RDM transaction handle