Debian Codegraph @

docs/upgrading/upgrade_4_0_txn.html

raw symbols SCIP
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>txn_XXX</title>
7 <link rel="stylesheet" href="gettingStarted.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 Upgrade Guide" />
10 <link rel="up" href="upgrade_4_0_toc.html" title="Chapter 10. Upgrading Berkeley DB 3.3 applications to Berkeley DB 4.0" />
11 <link rel="prev" href="upgrade_4_0_mp.html" title="memp_XXX" />
12 <link rel="next" href="upgrade_4_0_env.html" title="db_env_set_XXX" />
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">txn_XXX</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="upgrade_4_0_mp.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 10. Upgrading Berkeley DB 3.3 applications to Berkeley DB 4.0</th>
26 <td width="20%" align="right"> <a accesskey="n" href="upgrade_4_0_env.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="sect1" lang="en" xml:lang="en">
32 <div class="titlepage">
33 <div>
34 <div>
35 <h2 class="title" style="clear: both"><a id="upgrade_4_0_txn"></a>txn_XXX</h2>
36 </div>
37 </div>
38 </div>
39 <p>The C API for the Berkeley DB Transaction subsystem was reworked in the 4.0
40 release as follows:</p>
41 <div class="informaltable">
42 <table border="1" width="80%">
43 <colgroup>
44 <col />
45 <col />
46 </colgroup>
47 <thead>
48 <tr>
49 <th>Historic functional interface</th>
50 <th>Berkeley DB 4.X method</th>
51 </tr>
52 </thead>
53 <tbody>
54 <tr>
55 <td>txn_abort</td>
56 <td>
57 <a href="../api_reference/C/txnabort.html" class="olink">DB_TXN-&gt;abort()</a>
58 </td>
59 </tr>
60 <tr>
61 <td>txn_begin</td>
62 <td>
63 <a href="../api_reference/C/txnbegin.html" class="olink">DB_ENV-&gt;txn_begin()</a>
64 </td>
65 </tr>
66 <tr>
67 <td>txn_checkpoint</td>
68 <td>
69 <a href="../api_reference/C/txncheckpoint.html" class="olink">DB_ENV-&gt;txn_checkpoint()</a>
70 </td>
71 </tr>
72 <tr>
73 <td>txn_commit</td>
74 <td>
75 <a href="../api_reference/C/txncommit.html" class="olink">DB_TXN-&gt;commit()</a>
76 </td>
77 </tr>
78 <tr>
79 <td>txn_discard</td>
80 <td>
81 <a href="../api_reference/C/txndiscard.html" class="olink">DB_TXN-&gt;discard()</a>
82 </td>
83 </tr>
84 <tr>
85 <td>txn_id</td>
86 <td>
87 <a href="../api_reference/C/txnid.html" class="olink">DB_TXN-&gt;id()</a>
88 </td>
89 </tr>
90 <tr>
91 <td>txn_prepare</td>
92 <td>
93 <a href="../api_reference/C/txnprepare.html" class="olink">DB_TXN-&gt;prepare()</a>
94 </td>
95 </tr>
96 <tr>
97 <td>txn_recover</td>
98 <td>
99 <a href="../api_reference/C/txnrecover.html" class="olink">DB_TXN-&gt;recover()</a>
100 </td>
101 </tr>
102 <tr>
103 <td>txn_stat</td>
104 <td>
105 <a href="../api_reference/C/txnstat.html" class="olink">DB_TXN-&gt;stat()</a>
106 </td>
107 </tr>
108 </tbody>
109 </table>
110 </div>
111 <p>Applications calling any of these functions should update their calls
112 to use the enclosing <a href="../api_reference/C/env.html" class="olink">DB_ENV class</a> handle's method
113 (easily done as the first argument to the existing call is the correct
114 handle to use).</p>
115 <p>As a special case, since applications might potentially have many calls
116 to the txn_abort, txn_begin and txn_commit functions, those functions
117 continue to work unchanged in the Berkeley DB 4.0 release.</p>
118 <p>In addition, the <a href="../api_reference/C/txnstat.html" class="olink">DB_TXN-&gt;stat()</a> call has been changed in the 4.0
119 release to take a flags argument. To leave their historic behavior
120 unchanged, applications should add a final argument of 0 to any calls
121 made to <a href="../api_reference/C/txnstat.html" class="olink">DB_TXN-&gt;stat()</a>.</p>
122 </div>
123 <div class="navfooter">
124 <hr />
125 <table width="100%" summary="Navigation footer">
126 <tr>
127 <td width="40%" align="left"><a accesskey="p" href="upgrade_4_0_mp.html">Prev</a> </td>
128 <td width="20%" align="center">
129 <a accesskey="u" href="upgrade_4_0_toc.html">Up</a>
130 </td>
131 <td width="40%" align="right"> <a accesskey="n" href="upgrade_4_0_env.html">Next</a></td>
132 </tr>
133 <tr>
134 <td width="40%" align="left" valign="top">memp_XXX </td>
135 <td width="20%" align="center">
136 <a accesskey="h" href="index.html">Home</a>
137 </td>
138 <td width="40%" align="right" valign="top"> db_env_set_XXX</td>
139 </tr>
140 </table>
141 </div>
142 </body>
143 </html>