1
<!--$Id: txn_abort.so,v 11.13 2001/04/18 13:44:52 bostic Exp $-->
2
<!--$Id: m4.tcl,v 11.22 2001/04/18 15:50:10 bostic Exp $-->
3
<!--Copyright 1997-2001 by Sleepycat Software, Inc.-->
4
<!--All rights reserved.-->
7
<title>Berkeley DB: txn abort</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<a name="2"><!--meow--></a>
13
<table width="100%"><tr valign=top>
15
<h1><i>txn</i> <b>abort</b></h1>
18
<a href="../api_tcl/tcl_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
25
<p>The <i>txn</i> <b>abort</b> command causes an abnormal termination of the
27
<p>The log is played backward, and any necessary recovery operations are
28
performed. After recovery is completed, all locks held by the
29
transaction are acquired by the parent transaction in the case of a
30
nested transaction, or released in the case of a non-nested transaction.
31
As is the case for <i>txn</i> <b>commit</b>, applications that require strict
32
two-phase locking should not explicitly release any locks.
33
<p>In the case of nested transactions, aborting the parent transaction
34
causes all children of that transaction to be aborted.
35
<p>After <i>txn</i> <b>abort</b> has been called, regardless of its return, the
36
<b>txn</b> handle may not be accessed again.
37
<p>The <i>txn</i> <b>abort</b> command returns 0 on success, and in the case of error, a Tcl error
40
<table width="100%"><tr><td><br></td><td align=right>
41
<a href="../api_tcl/tcl_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
43
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>