Debian Codegraph @

docs/upgrading/upgrade_4_0_log.html

raw
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>log_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_lock.html" title="lock_XXX" />
12 <link rel="next" href="upgrade_4_0_mp.html" title="memp_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">log_XXX</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="upgrade_4_0_lock.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_mp.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_log"></a>log_XXX</h2>
36 </div>
37 </div>
38 </div>
39 <p>The C API for the Berkeley DB Logging 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>log_archive</td>
56 <td>
57 <a href="../api_reference/C/logarchive.html" class="olink">DB_ENV-&gt;log_archive()</a>
58 </td>
59 </tr>
60 <tr>
61 <td>log_file</td>
62 <td>
63 <a href="../api_reference/C/logfile.html" class="olink">DB_ENV-&gt;log_file()</a>
64 </td>
65 </tr>
66 <tr>
67 <td>log_flush</td>
68 <td>
69 <a href="../api_reference/C/logflush.html" class="olink">DB_ENV-&gt;log_flush()</a>
70 </td>
71 </tr>
72 <tr>
73 <td>log_get</td>
74 <td>
75 <a href="../api_reference/C/logcursor.html" class="olink">DB_ENV-&gt;log_cursor()</a>
76 </td>
77 </tr>
78 <tr>
79 <td>log_put</td>
80 <td>
81 <a href="../api_reference/C/logput.html" class="olink">DB_ENV-&gt;log_put()</a>
82 </td>
83 </tr>
84 <tr>
85 <td>log_register</td>
86 <td>DB_ENV-&gt;log_register</td>
87 </tr>
88 <tr>
89 <td>log_stat</td>
90 <td>
91 <a href="../api_reference/C/logstat.html" class="olink">DB_ENV-&gt;log_stat()</a>
92 </td>
93 </tr>
94 <tr>
95 <td>log_unregister</td>
96 <td>DB_ENV-&gt;log_unregister</td>
97 </tr>
98 </tbody>
99 </table>
100 </div>
101 <p>Applications calling any of these functions should update their calls
102 to use the enclosing <a href="../api_reference/C/env.html" class="olink">DB_ENV class</a> handle's method (in all cases other
103 than the log_get call, this is easily done as the first argument to the
104 existing call is the correct handle to use).</p>
105 <p>Application calls to the historic log_get function must be replaced
106 with the creation of a log file cursor (a <a href="../api_reference/C/logc.html" class="olink">DB_LOGC class</a> object), using
107 the <a href="../api_reference/C/logcursor.html" class="olink">DB_ENV-&gt;log_cursor()</a> method to retrieve log
108 records and calls to the <a href="../api_reference/C/logcclose.html" class="olink">DB_LOGC-&gt;close()</a> method to destroy the cursor. It
109 may also be possible to simplify some applications. In previous
110 releases of Berkeley DB, the DB_CURRENT, DB_NEXT, and DB_PREV flags to the
111 log_get function could not be used by a free-threaded <a href="../api_reference/C/env.html" class="olink">DB_ENV class</a>
112 handle. If their <a href="../api_reference/C/env.html" class="olink">DB_ENV class</a> handle was free-threaded, applications
113 had to create an additional, unique environment handle by separately
114 calling <a href="../api_reference/C/envopen.html" class="olink">DB_ENV-&gt;open()</a>. This
115 is no longer an issue in the log cursor interface, and applications may
116 be able to remove the now unnecessary creation of the additional
117 <a href="../api_reference/C/env.html" class="olink">DB_ENV class</a> object.</p>
118 <p>Finally, the <a href="../api_reference/C/logstat.html" class="olink">DB_ENV-&gt;log_stat()</a> call has been changed in the 4.0 release
119 to take a flags argument. To leave their historic behavior unchanged,
120 applications should add a final argument of 0 to any calls made to
121 <a href="../api_reference/C/logstat.html" class="olink">DB_ENV-&gt;log_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_lock.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_mp.html">Next</a></td>
132 </tr>
133 <tr>
134 <td width="40%" align="left" valign="top">lock_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"> memp_XXX</td>
139 </tr>
140 </table>
141 </div>
142 </body>
143 </html>