Debian Codegraph @

docs/api_reference/C/mempset_mp_max_openfd.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_ENV-&gt;set_mp_max_openfd()</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="memp.html" title="Chapter 8.  The DB_MPOOLFILE Handle" />
11 <link rel="prev" href="envset_cachesize.html" title="DB_ENV-&gt;set_cachesize()" />
12 <link rel="next" href="mempset_mp_max_write.html" title="DB_ENV-&gt;set_mp_max_write()" />
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_ENV-&gt;set_mp_max_openfd()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envset_cachesize.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 8. 
26 The DB_MPOOLFILE Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="mempset_mp_max_write.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="mempset_mp_max_openfd"></a>DB_ENV-&gt;set_mp_max_openfd()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_ENV-&gt;set_mp_max_openfd(DB_ENV *env, int maxopenfd); </pre>
45 <p>
46 The <code class="methodname">DB_ENV-&gt;set_mp_max_openfd()</code> method limits the number of file
47 descriptors the library will open concurrently when flushing dirty
48 pages from the cache.
49 </p>
50 <p>
51 The database environment's limit on open file descriptors to flush
52 dirty pages may also be configured using the environment's
53 <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file. The syntax of the entry in that file is a single
54 line with the string "set_mp_max_openfd", one or more whitespace
55 characters, and the number of open file descriptors. Because the
56 <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file is read when the database environment is opened,
57 it will silently overrule configuration done before that time.
58 </p>
59 <p>
60 The <a class="xref" href="mempset_mp_max_openfd.html" title="DB_ENV-&gt;set_mp_max_openfd()">DB_ENV-&gt;set_mp_max_openfd()</a>
61 method configures a database environment, not only operations
62 performed using the specified <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a> handle.
63 </p>
64 <p>
65 The <code class="methodname">DB_ENV-&gt;set_mp_max_openfd()</code> <span>
66 <span>
67 method returns a non-zero error value on failure and 0 on success.
68 </span>
69
70 </span>
71 </p>
72 <div class="sect2" lang="en" xml:lang="en">
73 <div class="titlepage">
74 <div>
75 <div>
76 <h3 class="title"><a id="idp53336008"></a>Parameters</h3>
77 </div>
78 </div>
79 </div>
80 <div class="sect3" lang="en" xml:lang="en">
81 <div class="titlepage">
82 <div>
83 <div>
84 <h4 class="title"><a id="idp53354152"></a>maxopenfd</h4>
85 </div>
86 </div>
87 </div>
88 <p>
89 The maximum number of file descriptors that may be concurrently opened
90 by the library when flushing dirty pages from the cache.
91 </p>
92 </div>
93 </div>
94 <div class="sect2" lang="en" xml:lang="en">
95 <div class="titlepage">
96 <div>
97 <div>
98 <h3 class="title"><a id="idp53361896"></a>Errors</h3>
99 </div>
100 </div>
101 </div>
102 <p>
103 The <code class="methodname">DB_ENV-&gt;set_mp_max_openfd()</code> <span>
104 <span>
105 method may fail and return one of the following non-zero errors:
106 </span>
107
108 </span>
109 </p>
110 <div class="sect3" lang="en" xml:lang="en">
111 <div class="titlepage">
112 <div>
113 <div>
114 <h4 class="title"><a id="idp53360016"></a>EINVAL</h4>
115 </div>
116 </div>
117 </div>
118 <p>
119 An invalid flag value or parameter was specified.
120 </p>
121 </div>
122 </div>
123 <div class="sect2" lang="en" xml:lang="en">
124 <div class="titlepage">
125 <div>
126 <div>
127 <h3 class="title"><a id="idp53352728"></a>Class</h3>
128 </div>
129 </div>
130 </div>
131 <p>
132 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>, <a class="link" href="memp.html" title="Chapter 8.  The DB_MPOOLFILE Handle">DB_MPOOLFILE</a>
133 </p>
134 </div>
135 <div class="sect2" lang="en" xml:lang="en">
136 <div class="titlepage">
137 <div>
138 <div>
139 <h3 class="title"><a id="idp53365504"></a>See Also</h3>
140 </div>
141 </div>
142 </div>
143 <p>
144 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>
145 </p>
146 </div>
147 </div>
148 <div class="navfooter">
149 <hr />
150 <table width="100%" summary="Navigation footer">
151 <tr>
152 <td width="40%" align="left"><a accesskey="p" href="envset_cachesize.html">Prev</a> </td>
153 <td width="20%" align="center">
154 <a accesskey="u" href="memp.html">Up</a>
155 </td>
156 <td width="40%" align="right"> <a accesskey="n" href="mempset_mp_max_write.html">Next</a></td>
157 </tr>
158 <tr>
159 <td width="40%" align="left" valign="top">DB_ENV-&gt;set_cachesize() </td>
160 <td width="20%" align="center">
161 <a accesskey="h" href="index.html">Home</a>
162 </td>
163 <td width="40%" align="right" valign="top"> DB_ENV-&gt;set_mp_max_write()</td>
164 </tr>
165 </table>
166 </div>
167 </body>
168 </html>