ENCINA(3) — Subroutines
NAME
iscommit - commits a transaction
SYNOPSIS
error = iscommit (void)
DESCRIPTION
The iscommit function commits a transaction. This causes all operations within the transaction to become permanent (unless another participant in the transaction aborts it). Since T-ISAM uses distributed transactions, it is possible for another participant in the transaction to abort it. If this is the case, the T-ISAM application finds out that the transaction aborted when it tries to execute another operation within the scope of the aborted transaction or when it calls iscommit to attempt to commit the transaction. In either case, the operation fails with the EABORTED error.
CAUTIONS
Existing C-ISAM applications do not know about distributed transactions. They have never encountered an aborted transaction unless they initiated the abort. It is very likely that C-ISAM applications that encounter an aborted distributed transaction at commit time will break.
ERRORS
EABORTED
ENOTRANS
— March 1997