Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbRestoreSavePoint

Restore a transaction save point.

Declaration

CTDBRET ctdbRestoreSavePoint(CTHANDLE Handle, NINT SavePoint)

Description

ctdbRestoreSavePoint() restores a transaction save point.

  • Handle [in] the session handle.
  • SavePoint [in] the save point number returned by ctdbSetSavePoint(). SavePoint can be set to -1 to back up to most current save point, can be set to -2 to back up one more, -3 more....etc. If SavePoint is 0, the most current save point is restored.

Returns

ctdbRestoreSavePoint() returns CTDBRET_OK if successful, or the c-tree error code on failure.

See also

ctdbAbort(), ctdbBegin(), ctdbClearSavePoint(), ctdbCommit(), ctdbSetSingleSavePoint()

TOCIndex