9.3.1 Suspending a Transaction
Use the tpsuspend(3c) function to suspend the current transaction. Use the following signature to call the tpsuspend() function:
int
tpsuspend(TPTRANID *t_id,long flags)
The following table describes the arguments to the
tpsuspend()
function.
Table 9-2 tpsuspend( ) Function Arguments
Field | Description |
---|---|
*t_id
|
Pointer to the transaction identifier. |
flags
|
Currently not used. Reserved for future use. |
You cannot suspend a transaction with outstanding asynchronous events. When a transaction is suspended, all modifications previously performed are preserved in a pending state until the transaction is committed, aborted, or timed out.
Parent topic: Suspending and Resuming a Transaction