Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTBase.SetKeepLock

Syntax

void SetKeepLock(KEEP_LOCK mode)

Parameters

  • Mode [in] is one of the KEEP_LOCK modes (see description).

Description

SetKeepLock() sets the extended keep lock mode applied when an active transaction is committed or aborted, by calling Commit() or Abort(). The valid keep lock modes is one of the following values:

  • FREE_KEEP release all locks. Clear LKISAM state. This is the default mode when a session handle is allocated.
  • LOCK_KEEP keep all locks acquired before and during transaction. Does not clear LKISAM state.
  • OUT_KEEP release only locks obtained within transaction and/or locks on records updated within transaction. Does not clear LKISAM state.
  • OUTALL_KEEP unconditionally keep all locks acquired before the transaction began. Free locks obtained obtained within the transaction. Does not clear LKISAM state.

Return

None

See Also

GetKeepLock()

TOCIndex