Debian Codegraph @

docs/api_reference/CXX/envlog_get_config.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>DbEnv::log_get_config()</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++ API Reference" />
10 <link rel="up" href="lsn.html" title="Chapter 8.  The DbLsn Handle" />
11 <link rel="prev" href="logflush.html" title="DbEnv::log_flush()" />
12 <link rel="next" href="logprintf.html" title="DbEnv::log_printf()" />
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">DbEnv::log_get_config()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="logflush.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 8. 
26 The DbLsn Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="logprintf.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="envlog_get_config"></a>DbEnv::log_get_config()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::log_get_config(u_int32_t which, int *onoffp)</pre>
45 <p>
46 The <code class="methodname">DbEnv::log_get_config()</code> method returns whether the specified
47 <span class="bold"><strong>which</strong></span> parameter is currently set or
48 not. You can manage this value using the
49 <a class="xref" href="envlog_set_config.html" title="DbEnv::log_set_config()">DbEnv::log_set_config()</a>
50 method.
51 </p>
52 <p>
53 The <code class="methodname">DbEnv::log_get_config()</code> method may be called at any time during
54 the life of the application.
55 </p>
56 <p>
57 The <code class="methodname">DbEnv::log_get_config()</code> <span>
58
59 <span>
60 method either returns a non-zero error value or throws an
61 exception that encapsulates a non-zero error value on
62 failure, and returns 0 on success.
63 </span>
64 </span>
65 </p>
66 <div class="sect2" lang="en" xml:lang="en">
67 <div class="titlepage">
68 <div>
69 <div>
70 <h3 class="title"><a id="idp8337656"></a>Parameters</h3>
71 </div>
72 </div>
73 </div>
74 <div class="sect3" lang="en" xml:lang="en">
75 <div class="titlepage">
76 <div>
77 <div>
78 <h4 class="title"><a id="idp8337008"></a>which</h4>
79 </div>
80 </div>
81 </div>
82 <p>
83 The <span class="bold"><strong>which</strong></span> parameter is the message
84 value for which configuration is being checked. Must be set to one of the following values:
85 </p>
86 <div class="itemizedlist">
87 <ul type="disc">
88 <li>
89 <p><a id="log_get_config_DB_LOG_DIRECT"></a>
90 <code class="literal">DB_LOG_DIRECT</code>
91 </p>
92 <p>
93 System buffering is turned off for Berkeley DB log files to avoid double
94 caching.
95 </p>
96 </li>
97 <li>
98 <p><a id="log_get_config_DB_LOG_DSYNC"></a>
99 <code class="literal">DB_LOG_DSYNC</code>
100 </p>
101 <p>
102 Berkeley DB is configured to flush log writes to the backing disk before
103 returning from the write system call, rather than flushing log writes
104 explicitly in a separate system call, as necessary.
105 </p>
106 </li>
107 <li>
108 <p><a id="log_get_config_DB_LOG_AUTO_REMOVE"></a>
109 <code class="literal">DB_LOG_AUTO_REMOVE</code>
110 </p>
111 <p>
112 Berkeley DB automatically removes log files that are no
113 longer needed.
114 </p>
115 </li>
116 <li>
117 <p><a id="log_get_config_DB_LOG_IN_MEMORY"></a>
118 <code class="literal">DB_LOG_IN_MEMORY</code>
119 </p>
120 <p>
121 Transaction logs are maintained in memory rather than on disk. This
122 means that transactions exhibit the ACI (atomicity, consistency, and
123 isolation) properties, but not D (durability).
124 </p>
125 </li>
126 <li>
127 <p><a id="log_get_config_DB_LOG_ZERO"></a>
128 <code class="literal">DB_LOG_ZERO</code>
129 </p>
130 <p>
131 All pages of a log file are zeroed when that log file is created.
132 </p>
133 </li>
134 </ul>
135 </div>
136 </div>
137 <div class="sect3" lang="en" xml:lang="en">
138 <div class="titlepage">
139 <div>
140 <div>
141 <h4 class="title"><a id="idp8348200"></a>onoffp</h4>
142 </div>
143 </div>
144 </div>
145 <p>
146 The <span class="bold"><strong>onoffp</strong></span> parameter references
147 memory into which the configuration of the specified <span class="bold"><strong>which</strong></span> parameter is copied.
148 </p>
149 <p>
150 If the returned <span class="bold"><strong>onoff</strong></span> value is zero, the
151 parameter is off; otherwise, on.
152 </p>
153 </div>
154 </div>
155 <div class="sect2" lang="en" xml:lang="en">
156 <div class="titlepage">
157 <div>
158 <div>
159 <h3 class="title"><a id="idp8348632"></a>Class</h3>
160 </div>
161 </div>
162 </div>
163 <p>
164 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>
165 </p>
166 </div>
167 <div class="sect2" lang="en" xml:lang="en">
168 <div class="titlepage">
169 <div>
170 <div>
171 <h3 class="title"><a id="idp8338088"></a>See Also</h3>
172 </div>
173 </div>
174 </div>
175 <p>
176 <a class="xref" href="lsn.html#loglist" title="Logging Subsystem and Related Methods">Logging Subsystem and Related Methods</a>,
177 <a class="xref" href="envlog_set_config.html" title="DbEnv::log_set_config()">DbEnv::log_set_config()</a>
178 </p>
179 </div>
180 </div>
181 <div class="navfooter">
182 <hr />
183 <table width="100%" summary="Navigation footer">
184 <tr>
185 <td width="40%" align="left"><a accesskey="p" href="logflush.html">Prev</a> </td>
186 <td width="20%" align="center">
187 <a accesskey="u" href="lsn.html">Up</a>
188 </td>
189 <td width="40%" align="right"> <a accesskey="n" href="logprintf.html">Next</a></td>
190 </tr>
191 <tr>
192 <td width="40%" align="left" valign="top">DbEnv::log_flush() </td>
193 <td width="20%" align="center">
194 <a accesskey="h" href="index.html">Home</a>
195 </td>
196 <td width="40%" align="right" valign="top"> DbEnv::log_printf()</td>
197 </tr>
198 </table>
199 </div>
200 </body>
201 </html>