| 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_detect</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 B. DB_CONFIG Parameter Reference" /> |
| 11 | <link rel="prev" href="set_lg_regionmax_parameter.html" title="set_lg_regionmax" /> |
| 12 | <link rel="next" href="set_lk_max_lockers_parameter.html" title="set_lk_max_lockers" /> |
| 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_detect</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="set_lg_regionmax_parameter.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Appendix B. DB_CONFIG Parameter Reference</th> |
| 26 | <td width="20%" align="right"> <a accesskey="n" href="set_lk_max_lockers_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_detect_parameter"></a>set_lk_detect</h2> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <p> |
| 40 | Sets the maximum number of locking entities supported by the Berkeley DB |
| 41 | environment. This value is used by Berkeley DB to estimate how much |
| 42 | space to allocate for various lock-table data structures. |
| 43 | When using the DB, the default value is 2,000 lockers. |
| 44 | </p> |
| 45 | <p> |
| 46 | 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 |
| 47 | single line with the string |
| 48 | <code class="literal">set_lk_detect</code>, one or more whitespace |
| 49 | characters, and the method <span class="bold"><strong>detect |
| 50 | </strong></span>parameter as a string. The detect parameter |
| 51 | configures the deadlock detector. The deadlock detector |
| 52 | will reject the lock request with the lowest priority. If |
| 53 | multiple lock requests have the lowest priority, then the |
| 54 | detect parameter is used to select which of those lock |
| 55 | requests to reject. |
| 56 | </p> |
| 57 | <p> |
| 58 | For example: |
| 59 | </p> |
| 60 | <pre class="programlisting">set_lk_detect DB_LOCK_OLDEST</pre> |
| 61 | <p> |
| 62 | Sets the deadlock detector such that the lock request for |
| 63 | the locker ID with the oldest lock is rejected. |
| 64 | </p> |
| 65 | <p> |
| 66 | The <span class="bold"><strong>detect</strong></span> parameter |
| 67 | values are: |
| 68 | </p> |
| 69 | <div class="itemizedlist"> |
| 70 | <ul type="disc"> |
| 71 | <li> |
| 72 | DB_LOCK_DEFAULT |
| 73 | </li> |
| 74 | <li> |
| 75 | DB_LOCK_EXPIRE |
| 76 | </li> |
| 77 | <li> |
| 78 | DB_LOCK_MAXLOCKS |
| 79 | </li> |
| 80 | <li> |
| 81 | DB_LOCK_MAXWRITE |
| 82 | </li> |
| 83 | <li> |
| 84 | DB_LOCK_MINLOCKS |
| 85 | </li> |
| 86 | <li> |
| 87 | DB_LOCK_MINWRITE |
| 88 | </li> |
| 89 | <li> |
| 90 | DB_LOCK_OLDEST |
| 91 | </li> |
| 92 | <li> |
| 93 | DB_LOCK_RANDOM |
| 94 | </li> |
| 95 | <li> |
| 96 | DB_LOCK_YOUNGEST |
| 97 | </li> |
| 98 | </ul> |
| 99 | </div> |
| 100 | <p>For more information, see <a class="xref" href="envset_lk_detect.html" title="DbEnv::set_lk_detect()">DbEnv::set_lk_detect()</a>. </p> |
| 101 | </div> |
| 102 | <div class="navfooter"> |
| 103 | <hr /> |
| 104 | <table width="100%" summary="Navigation footer"> |
| 105 | <tr> |
| 106 | <td width="40%" align="left"><a accesskey="p" href="set_lg_regionmax_parameter.html">Prev</a> </td> |
| 107 | <td width="20%" align="center"> |
| 108 | <a accesskey="u" href="configuration_reference.html">Up</a> |
| 109 | </td> |
| 110 | <td width="40%" align="right"> <a accesskey="n" href="set_lk_max_lockers_parameter.html">Next</a></td> |
| 111 | </tr> |
| 112 | <tr> |
| 113 | <td width="40%" align="left" valign="top">set_lg_regionmax </td> |
| 114 | <td width="20%" align="center"> |
| 115 | <a accesskey="h" href="index.html">Home</a> |
| 116 | </td> |
| 117 | <td width="40%" align="right" valign="top"> set_lk_max_lockers</td> |
| 118 | </tr> |
| 119 | </table> |
| 120 | </div> |
| 121 | </body> |
| 122 | </html> |