~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/docs/api_tcl/txn_abort.html

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.-->
 
5
<html>
 
6
<head>
 
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++">
 
10
</head>
 
11
<body bgcolor=white>
 
12
<a name="2"><!--meow--></a>
 
13
<table width="100%"><tr valign=top>
 
14
<td>
 
15
<h1><i>txn</i> <b>abort</b></h1>
 
16
</td>
 
17
<td align=right>
 
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>
 
19
</td></tr></table>
 
20
<hr size=1 noshade>
 
21
<tt>
 
22
<h3><pre>txn abort
 
23
</pre></h3>
 
24
<h1>Description</h1>
 
25
<p>The <i>txn</i> <b>abort</b> command causes an abnormal termination of the
 
26
transaction.
 
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
 
38
is thrown.
 
39
</tt>
 
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>
 
42
</td></tr></table>
 
43
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
 
44
</body>
 
45
</html>