db_result_t db_abort_tx ( db_t  hdb,
db_flags_t  flags 
)

Abort a database's active transaction for the current thread.

Parameters:
hdb Database handle.
flags 
Returns:
On failure, one of the following error codes is set:
  • DB_EINVAL Could be caused by: invalid database handle, invalid flags parameter, invalid completion mode.
  • DB_ENOTX No such transaction found.
  • DB_ESTATE Object state is not compatible with the method called or arguments. This could be caused by invalid transaction state.

See also:
db_begin_tx, db_commit_tx, db_flush_tx,
get_db_error, clear_db_error, Error Handling


Copyright © 2005-2008 ITTIA®. All rights reserved.