commit_xact

Description

Mark a distributed transaction as being committed.

Syntax

RETCODE commit_xact(connect, commid)
 
DBPROCESS     *connect;
DBINT                   commid;

Parameters

connect

A pointer to the DBPROCESS used to communicate with the commit service.

commid

The commid used to identify the transaction to the commit service.

Returns

SUCCEED or FAIL.

If commit_xact fails, you must roll back the transaction.

Usage

This routine informs the commit service that the status of a distributed transaction should be changed from “begin” to “commit.”

See also

abort_xact, remove_xact, scan_xact, start_xact, stat_xact