Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / docs / api_reference / C / set_lk_max_locks_parameter.html
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>set_lk_max_locks</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="configuration_reference.html" title="Appendix D. DB_CONFIG Parameter Reference" />
11     <link rel="prev" href="set_lk_max_lockers_parameter.html" title="set_lk_max_lockers" />
12     <link rel="next" href="set_lk_max_objects_parameter.html" title="set_lk_max_objects" />
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">set_lk_max_locks</th>
22         </tr>
23         <tr>
24           <td width="20%" align="left"><a accesskey="p" href="set_lk_max_lockers_parameter.html">Prev</a> </td>
25           <th width="60%" align="center">Appendix D. DB_CONFIG Parameter Reference</th>
26           <td width="20%" align="right"> <a accesskey="n" href="set_lk_max_objects_parameter.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="set_lk_max_locks_parameter"></a>set_lk_max_locks</h2>
36           </div>
37         </div>
38       </div>
39       <p>
40                  Sets the maximum number of locks supported by the Berkeley DB
41                  environment. This value is used to estimate how much space
42                  to allocate for various lock-table data structures.  When
43                  using the DB, the default value is 1000 locks. When
44                  using the BDB SQL interface, the default value is 10,000
45                  locks. 
46             </p>
47       <p>
48                  The syntax of this parameter in the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file is a
49                  single line with the string
50                  <code class="literal">set_lk_max_locks</code>, one or more
51                  whitespace characters, and the number of locks. 
52             </p>
53       <p>
54                  If the database environment already exists when this parameter is
55                  changed, it is ignored. To change this value after the environment
56                  has been created, re-create your environment.
57             </p>
58       <p>For more information, see <a class="xref" href="envset_lk_max_locks.html" title="DB_ENV-&gt;set_lk_max_locks()">DB_ENV-&gt;set_lk_max_locks()</a>. </p>
59     </div>
60     <div class="navfooter">
61       <hr />
62       <table width="100%" summary="Navigation footer">
63         <tr>
64           <td width="40%" align="left"><a accesskey="p" href="set_lk_max_lockers_parameter.html">Prev</a> </td>
65           <td width="20%" align="center">
66             <a accesskey="u" href="configuration_reference.html">Up</a>
67           </td>
68           <td width="40%" align="right"> <a accesskey="n" href="set_lk_max_objects_parameter.html">Next</a></td>
69         </tr>
70         <tr>
71           <td width="40%" align="left" valign="top">set_lk_max_lockers </td>
72           <td width="20%" align="center">
73             <a accesskey="h" href="index.html">Home</a>
74           </td>
75           <td width="40%" align="right" valign="top"> set_lk_max_objects</td>
76         </tr>
77       </table>
78     </div>
79   </body>
80 </html>