Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbSetTransactionMode

OR-ed in to form the transaction mode used when a c-tree transaction is started.

Declaration

CTDBRET ctdbDECL ctdbSetTransactionMode(CTHANDLE Handle, CTBEGIN_MODE mode);

Description

  • Handle is a session handle.
  • mode is a combination of possible mode values:

    CTBEGIN_MODE Symbolic Constant

    Description

    CTBEGIN_NONE

    No begin transaction mode set. Default mode apply.

    CTBEGIN_PREIMG

    Transaction atomicity only. Auto-recovery is not available. Mutually exclusive with CTBEGIN_TRNLOG.

    CTBEGIN_TRNLOG

    Full transaction processing functionality including auto-recovery. Mutually exclusive to CTBEGIN_PREIMG. This is the default begin transaction mode.

    CTBEGIN_DEFER

    Defer begin transaction until update.

    CTBEGIN_AUTOSAVE

    Automatically invokes savepoints after each successful record or resource update.

This mode will be OR-ed in to form the transaction mode used when a c-tree transaction is started. If the transaction mode is CTBEGIN_NONE, the ctTRNLOG mode is used to start a new transaction.

Return Values

Value

Symbolic Constant

Explanation

0

NO_ERROR

Successful operation.

See Also

ctdbGetTransactionMode()

TOCIndex