| 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>commit_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_functionsbegin_txn.html" title="begin_txn" /> |
| 12 | <link rel="next" href="stldbstl_global_functionsabort_txn.html" title="abort_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">commit_txn</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="stldbstl_global_functionsbegin_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_functionsabort_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_functionscommit_txn"></a>commit_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_functionscommit_txn_details"></a>Function Details</h3> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | <pre class="programlisting"> |
| 49 | void commit_txn(DbEnv *env, |
| 50 | u_int32_t flags=0) |
| 51 | </pre> |
| 52 | <p>Commit current transaction opened in the environment "env". </p> |
| 53 | <p>This function is called by user to commit an external explicit transaction. </p> |
| 54 | <div class="sect3" lang="en" xml:lang="en"> |
| 55 | <div class="titlepage"> |
| 56 | <div> |
| 57 | <div> |
| 58 | <h4 class="title"><a id="idp49913200"></a>Parameters</h4> |
| 59 | </div> |
| 60 | </div> |
| 61 | </div> |
| 62 | <div class="sect4" lang="en" xml:lang="en"> |
| 63 | <div class="titlepage"> |
| 64 | <div> |
| 65 | <div> |
| 66 | <h5 class="title"><a id="idp49914952"></a>flags</h5> |
| 67 | </div> |
| 68 | </div> |
| 69 | </div> |
| 70 | <p>It is set to DbTxn::commit() funcion. </p> |
| 71 | </div> |
| 72 | <div class="sect4" lang="en" xml:lang="en"> |
| 73 | <div class="titlepage"> |
| 74 | <div> |
| 75 | <div> |
| 76 | <h5 class="title"><a id="idp49916832"></a>env</h5> |
| 77 | </div> |
| 78 | </div> |
| 79 | </div> |
| 80 | <p>The environment whose current transaction is to be committed. </p> |
| 81 | </div> |
| 82 | </div> |
| 83 | <div class="sect3" lang="en" xml:lang="en"> |
| 84 | <div class="titlepage"> |
| 85 | <div> |
| 86 | <div> |
| 87 | <h4 class="title"><a id="idp49911824"></a>See Also</h4> |
| 88 | </div> |
| 89 | </div> |
| 90 | </div> |
| 91 | <p> |
| 92 | </p> |
| 93 | <p><a class="link" href="stldbstl_global_functionscommit_txn.html" title="commit_txn">commit_txn(DbEnv *, DbTxn *, u_int32_t)</a> |
| 94 | ; </p> |
| 95 | <p> |
| 96 | </p> |
| 97 | </div> |
| 98 | <pre class="programlisting"> |
| 99 | void commit_txn(DbEnv *env, DbTxn *txn, |
| 100 | u_int32_t flags=0) |
| 101 | </pre> |
| 102 | <p>Commit a specified transaction and all its child transactions. </p> |
| 103 | <div class="sect3" lang="en" xml:lang="en"> |
| 104 | <div class="titlepage"> |
| 105 | <div> |
| 106 | <div> |
| 107 | <h4 class="title"><a id="idp49907880"></a>Parameters</h4> |
| 108 | </div> |
| 109 | </div> |
| 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="idp49908072"></a>txn</h5> |
| 116 | </div> |
| 117 | </div> |
| 118 | </div> |
| 119 | <p>The transaction to commit, can be a parent transaction of a nested transaction group, all un-aborted child transactions of it will be committed. </p> |
| 120 | </div> |
| 121 | <div class="sect4" lang="en" xml:lang="en"> |
| 122 | <div class="titlepage"> |
| 123 | <div> |
| 124 | <div> |
| 125 | <h5 class="title"><a id="idp49913984"></a>flags</h5> |
| 126 | </div> |
| 127 | </div> |
| 128 | </div> |
| 129 | <p>It is passed to each DbTxn::commit() call. </p> |
| 130 | </div> |
| 131 | <div class="sect4" lang="en" xml:lang="en"> |
| 132 | <div class="titlepage"> |
| 133 | <div> |
| 134 | <div> |
| 135 | <h5 class="title"><a id="idp49920304"></a>env</h5> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div> |
| 139 | <p>The environment where txn is started from. </p> |
| 140 | </div> |
| 141 | </div> |
| 142 | <div class="sect3" lang="en" xml:lang="en"> |
| 143 | <div class="titlepage"> |
| 144 | <div> |
| 145 | <div> |
| 146 | <h4 class="title"><a id="idp49914304"></a>See Also</h4> |
| 147 | </div> |
| 148 | </div> |
| 149 | </div> |
| 150 | <p> |
| 151 | </p> |
| 152 | <p><a class="link" href="stldbstl_global_functionscommit_txn.html" title="commit_txn">commit_txn(DbEnv *, u_int32_t)</a> |
| 153 | ; </p> |
| 154 | <p> |
| 155 | </p> |
| 156 | </div> |
| 157 | </div> |
| 158 | <div class="sect2" lang="en" xml:lang="en"> |
| 159 | <div class="titlepage"> |
| 160 | <div> |
| 161 | <div> |
| 162 | <h3 class="title"><a id="idp49912144"></a>Group: Transaction control global functions.</h3> |
| 163 | </div> |
| 164 | </div> |
| 165 | </div> |
| 166 | <p>dbstl transaction API.</p> |
| 167 | <p>You should call these API rather than DB C/C++ API to use Berkeley DB transaction features. </p> |
| 168 | </div> |
| 169 | <div class="sect2" lang="en" xml:lang="en"> |
| 170 | <div class="titlepage"> |
| 171 | <div> |
| 172 | <div> |
| 173 | <h3 class="title"><a id="idp49917328"></a>Class</h3> |
| 174 | </div> |
| 175 | </div> |
| 176 | </div> |
| 177 | <p> |
| 178 | <a class="link" href="dbstl_global_functions.html" title="Chapter 1. Dbstl Global Public Functions">dbstl_global_functions</a> |
| 179 | </p> |
| 180 | </div> |
| 181 | </div> |
| 182 | <div class="navfooter"> |
| 183 | <hr /> |
| 184 | <table width="100%" summary="Navigation footer"> |
| 185 | <tr> |
| 186 | <td width="40%" align="left"><a accesskey="p" href="stldbstl_global_functionsbegin_txn.html">Prev</a> </td> |
| 187 | <td width="20%" align="center"> |
| 188 | <a accesskey="u" href="dbstl_global_functions.html">Up</a> |
| 189 | </td> |
| 190 | <td width="40%" align="right"> <a accesskey="n" href="stldbstl_global_functionsabort_txn.html">Next</a></td> |
| 191 | </tr> |
| 192 | <tr> |
| 193 | <td width="40%" align="left" valign="top">begin_txn </td> |
| 194 | <td width="20%" align="center"> |
| 195 | <a accesskey="h" href="index.html">Home</a> |
| 196 | </td> |
| 197 | <td width="40%" align="right" valign="top"> abort_txn</td> |
| 198 | </tr> |
| 199 | </table> |
| 200 | </div> |
| 201 | </body> |
| 202 | </html> |