Debian Codegraph @

docs/upgrading/upgrade_4_4_autocommit.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>DB_AUTO_COMMIT</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_4_toc.html" title="Chapter 6. Upgrading Berkeley DB 4.3 applications to Berkeley DB 4.4" />
11 <link rel="prev" href="upgrade_4_4_toc.html" title="Chapter 6. Upgrading Berkeley DB 4.3 applications to Berkeley DB 4.4" />
12 <link rel="next" href="upgrade_4_4_isolation.html" title="DB_DEGREE_2, DB_DIRTY_READ" />
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">DB_AUTO_COMMIT</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="upgrade_4_4_toc.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 6. Upgrading Berkeley DB 4.3 applications to Berkeley DB 4.4</th>
26 <td width="20%" align="right"> <a accesskey="n" href="upgrade_4_4_isolation.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_4_autocommit"></a>DB_AUTO_COMMIT</h2>
36 </div>
37 </div>
38 </div>
39 <p>In previous Berkeley DB releases, the <a href="../api_reference/C/envset_flags.html#envset_flags_DB_AUTO_COMMIT" class="olink">DB_AUTO_COMMIT</a> flag was used in
40 the C and C++ Berkeley DB APIs to wrap operations within a transaction without
41 explicitly creating a transaction and passing the <a href="../api_reference/C/txn.html" class="olink">TXN</a> handle
42 as part of the operation method call. In the 4.4 release, the
43 <a href="../api_reference/C/envset_flags.html#envset_flags_DB_AUTO_COMMIT" class="olink">DB_AUTO_COMMIT</a> flag no longer needs to be explicitly specified.</p>
44 <p>In the 4.4 release, specifying the <a href="../api_reference/C/envset_flags.html#envset_flags_DB_AUTO_COMMIT" class="olink">DB_AUTO_COMMIT</a> flag to the
45 <a href="../api_reference/C/envset_flags.html" class="olink">DB_ENV-&gt;set_flags()</a> method causes all database modifications in that
46 environment to be transactional; specifying <a href="../api_reference/C/envset_flags.html#envset_flags_DB_AUTO_COMMIT" class="olink">DB_AUTO_COMMIT</a> to
47 the <a href="../api_reference/C/dbopen.html" class="olink">DB-&gt;open()</a> method causes all modifications to that database to be
48 transactional; specifying <a href="../api_reference/C/envset_flags.html#envset_flags_DB_AUTO_COMMIT" class="olink">DB_AUTO_COMMIT</a> to the
49 <a href="../api_reference/C/envdbremove.html" class="olink">DB_ENV-&gt;dbremove()</a> methods causes those
50 specific operations to be transactional.</p>
51 <p>No related application changes are required for this release, as the
52 <a href="../api_reference/C/envset_flags.html#envset_flags_DB_AUTO_COMMIT" class="olink">DB_AUTO_COMMIT</a> flag is ignored where it is no longer needed.
53 However, application writers are encouraged to remove uses of the
54 <a href="../api_reference/C/envset_flags.html#envset_flags_DB_AUTO_COMMIT" class="olink">DB_AUTO_COMMIT</a> flag in places where it is no longer needed.</p>
55 <p>Similar changes have been made to the Berkeley DB Tcl API. These changes are
56 not optional, and Tcl applications will need to remove the -auto_commit
57 flag from methods where it is no longer needed.</p>
58 </div>
59 <div class="navfooter">
60 <hr />
61 <table width="100%" summary="Navigation footer">
62 <tr>
63 <td width="40%" align="left"><a accesskey="p" href="upgrade_4_4_toc.html">Prev</a> </td>
64 <td width="20%" align="center">
65 <a accesskey="u" href="upgrade_4_4_toc.html">Up</a>
66 </td>
67 <td width="40%" align="right"> <a accesskey="n" href="upgrade_4_4_isolation.html">Next</a></td>
68 </tr>
69 <tr>
70 <td width="40%" align="left" valign="top">Chapter 6. Upgrading Berkeley DB 4.3 applications to Berkeley DB 4.4 </td>
71 <td width="20%" align="center">
72 <a accesskey="h" href="index.html">Home</a>
73 </td>
74 <td width="40%" align="right" valign="top"> DB_DEGREE_2, DB_DIRTY_READ</td>
75 </tr>
76 </table>
77 </div>
78 </body>
79 </html>