| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 |
<title>abort_txn</title> |
| 7 |
<link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 |
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 |
<link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> |
| 10 |
<link rel="up" href="dbstl_global_functions.html" title="Chapter 1. Dbstl Global Public Functions" /> |
| 11 |
<link rel="prev" href="stldbstl_global_functionscommit_txn.html" title="commit_txn" /> |
| 12 |
<link rel="next" href="stldbstl_global_functionscurrent_txn.html" title="current_txn" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div xmlns="" class="navheader"> |
| 16 |
<div class="libver"> |
| 17 |
<p>Library Version 11.2.5.3</p> |
| 18 |
</div> |
| 19 |
<table width="100%" summary="Navigation header"> |
| 20 |
<tr> |
| 21 |
<th colspan="3" align="center">abort_txn</th> |
| 22 |
</tr> |
| 23 |
<tr> |
| 24 |
<td width="20%" align="left"><a accesskey="p" href="stldbstl_global_functionscommit_txn.html">Prev</a> </td> |
| 25 |
<th width="60%" align="center">Chapter 1. |
| 26 |
Dbstl Global Public Functions </th> |
| 27 |
<td width="20%" align="right"> <a accesskey="n" href="stldbstl_global_functionscurrent_txn.html">Next</a></td> |
| 28 |
</tr> |
| 29 |
</table> |
| 30 |
<hr /> |
| 31 |
</div> |
| 32 |
<div class="sect1" lang="en" xml:lang="en"> |
| 33 |
<div class="titlepage"> |
| 34 |
<div> |
| 35 |
<div> |
| 36 |
<h2 class="title" style="clear: both"><a id="stldbstl_global_functionsabort_txn"></a>abort_txn</h2> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
<div class="sect2" lang="en" xml:lang="en"> |
| 41 |
<div class="titlepage"> |
| 42 |
<div> |
| 43 |
<div> |
| 44 |
<h3 class="title"><a id="stldbstl_global_functionsabort_txn_details"></a>Function Details</h3> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
<pre class="programlisting"> |
| 49 |
void abort_txn(DbEnv *env) |
| 50 |
</pre> |
| 51 |
<p>Abort current transaction of environment "env". </p> |
| 52 |
<p>This function is called by dbstl user to abort an outside explicit transaction. </p> |
| 53 |
<div class="sect3" lang="en" xml:lang="en"> |
| 54 |
<div class="titlepage"> |
| 55 |
<div> |
| 56 |
<div> |
| 57 |
<h4 class="title"><a id="idp49903376"></a>Parameters</h4> |
| 58 |
</div> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
<div class="sect4" lang="en" xml:lang="en"> |
| 62 |
<div class="titlepage"> |
| 63 |
<div> |
| 64 |
<div> |
| 65 |
<h5 class="title"><a id="idp49923104"></a>env</h5> |
| 66 |
</div> |
| 67 |
</div> |
| 68 |
</div> |
| 69 |
<p>The environment whose current transaction is to be aborted. </p> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
<div class="sect3" lang="en" xml:lang="en"> |
| 73 |
<div class="titlepage"> |
| 74 |
<div> |
| 75 |
<div> |
| 76 |
<h4 class="title"><a id="idp49922080"></a>See Also</h4> |
| 77 |
</div> |
| 78 |
</div> |
| 79 |
</div> |
| 80 |
<p> |
| 81 |
</p> |
| 82 |
<p><a class="link" href="stldbstl_global_functionsabort_txn.html" title="abort_txn">abort_txn(DbEnv *, DbTxn *)</a> |
| 83 |
; </p> |
| 84 |
<p> |
| 85 |
</p> |
| 86 |
</div> |
| 87 |
<pre class="programlisting"> |
| 88 |
void abort_txn(DbEnv *env, |
| 89 |
DbTxn *txn) |
| 90 |
</pre> |
| 91 |
<p>Abort specified transaction "txn" and all its child transactions. </p> |
| 92 |
<p>That is, "txn" can be a parent transaction of a nested transaction group. </p> |
| 93 |
<div class="sect3" lang="en" xml:lang="en"> |
| 94 |
<div class="titlepage"> |
| 95 |
<div> |
| 96 |
<div> |
| 97 |
<h4 class="title"><a id="idp49910992"></a>Parameters</h4> |
| 98 |
</div> |
| 99 |
</div> |
| 100 |
</div> |
| 101 |
<div class="sect4" lang="en" xml:lang="en"> |
| 102 |
<div class="titlepage"> |
| 103 |
<div> |
| 104 |
<div> |
| 105 |
<h5 class="title"><a id="idp49911184"></a>txn</h5> |
| 106 |
</div> |
| 107 |
</div> |
| 108 |
</div> |
| 109 |
<p>The transaction to abort, can be a parent transaction of a nested transaction group, all child transactions of it will be aborted. </p> |
| 110 |
</div> |
| 111 |
<div class="sect4" lang="en" xml:lang="en"> |
| 112 |
<div class="titlepage"> |
| 113 |
<div> |
| 114 |
<div> |
| 115 |
<h5 class="title"><a id="idp49915824"></a>env</h5> |
| 116 |
</div> |
| 117 |
</div> |
| 118 |
</div> |
| 119 |
<p>The environment where txn is started from. </p> |
| 120 |
</div> |
| 121 |
</div> |
| 122 |
<div class="sect3" lang="en" xml:lang="en"> |
| 123 |
<div class="titlepage"> |
| 124 |
<div> |
| 125 |
<div> |
| 126 |
<h4 class="title"><a id="idp49916016"></a>See Also</h4> |
| 127 |
</div> |
| 128 |
</div> |
| 129 |
</div> |
| 130 |
<p> |
| 131 |
</p> |
| 132 |
<p><a class="link" href="stldbstl_global_functionsabort_txn.html" title="abort_txn">abort_txn(DbEnv *)</a> |
| 133 |
; </p> |
| 134 |
<p> |
| 135 |
</p> |
| 136 |
</div> |
| 137 |
</div> |
| 138 |
<div class="sect2" lang="en" xml:lang="en"> |
| 139 |
<div class="titlepage"> |
| 140 |
<div> |
| 141 |
<div> |
| 142 |
<h3 class="title"><a id="idp49867280"></a>Group: Transaction control global functions.</h3> |
| 143 |
</div> |
| 144 |
</div> |
| 145 |
</div> |
| 146 |
<p>dbstl transaction API.</p> |
| 147 |
<p>You should call these API rather than DB C/C++ API to use Berkeley DB transaction features. </p> |
| 148 |
</div> |
| 149 |
<div class="sect2" lang="en" xml:lang="en"> |
| 150 |
<div class="titlepage"> |
| 151 |
<div> |
| 152 |
<div> |
| 153 |
<h3 class="title"><a id="idp49925352"></a>Class</h3> |
| 154 |
</div> |
| 155 |
</div> |
| 156 |
</div> |
| 157 |
<p> |
| 158 |
<a class="link" href="dbstl_global_functions.html" title="Chapter 1. Dbstl Global Public Functions">dbstl_global_functions</a> |
| 159 |
</p> |
| 160 |
</div> |
| 161 |
</div> |
| 162 |
<div class="navfooter"> |
| 163 |
<hr /> |
| 164 |
<table width="100%" summary="Navigation footer"> |
| 165 |
<tr> |
| 166 |
<td width="40%" align="left"><a accesskey="p" href="stldbstl_global_functionscommit_txn.html">Prev</a> </td> |
| 167 |
<td width="20%" align="center"> |
| 168 |
<a accesskey="u" href="dbstl_global_functions.html">Up</a> |
| 169 |
</td> |
| 170 |
<td width="40%" align="right"> <a accesskey="n" href="stldbstl_global_functionscurrent_txn.html">Next</a></td> |
| 171 |
</tr> |
| 172 |
<tr> |
| 173 |
<td width="40%" align="left" valign="top">commit_txn </td> |
| 174 |
<td width="20%" align="center"> |
| 175 |
<a accesskey="h" href="index.html">Home</a> |
| 176 |
</td> |
| 177 |
<td width="40%" align="right" valign="top"> current_txn</td> |
| 178 |
</tr> |
| 179 |
</table> |
| 180 |
</div> |
| 181 |
</body> |
| 182 |
</html> |