Debian Codegraph @

docs/installation/upgrade_11gr2_53_excl.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>Exclusive Database Handles</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 Installation and Build Guide" />
10 <link rel="up" href="upgrade_53_toc.html" title="Chapter 9.  Upgrading Berkeley DB 11.2.5.2 applications to Berkeley DB 11.2.5.3" />
11 <link rel="prev" href="upgrade_11gr2_53_conn_status.html" title="Replication Connection Status in the Java API" />
12 <link rel="next" href="upgrade_11gr2_53_heap_regionsize.html" title="Configure the Region Size of Heap Databases" />
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">Exclusive Database Handles </th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="upgrade_11gr2_53_conn_status.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 9. 
26 Upgrading Berkeley DB 11.2.5.2 applications to Berkeley DB 11.2.5.3
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="upgrade_11gr2_53_heap_regionsize.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="upgrade_11gr2_53_excl"></a>Exclusive Database Handles </h2>
38 </div>
39 </div>
40 </div>
41 <div class="toc">
42 <dl>
43 <dt>
44 <span class="sect2">
45 <a href="upgrade_11gr2_53_excl.html#idp811424">New Functions</a>
46 </span>
47 </dt>
48 </dl>
49 </div>
50 <p>
51 Database handles can now be configured to allow exclusive access to the
52 database. To enable exclusive access, call <a href="../api_reference/C/dbset_lk_exclusive.html" class="olink">DB-&gt;set_lk_exclusive()</a> before
53 calling <a href="../api_reference/C/dbopen.html" class="olink">DB-&gt;open()</a>. Set nowait_onoff to non-zero to have <a href="../api_reference/C/dbopen.html" class="olink">DB-&gt;open()</a> return
54 immediately, with the error <code class="literal">DB_LOCK_NOTGRANTED</code> if
55 it cannot immediately get exclusive access to the database, and to
56 0 to have <a href="../api_reference/C/dbopen.html" class="olink">DB-&gt;open()</a> block until it can gain exclusive access.
57 </p>
58 <div class="sect2" lang="en" xml:lang="en">
59 <div class="titlepage">
60 <div>
61 <div>
62 <h3 class="title"><a id="idp811424"></a>New Functions</h3>
63 </div>
64 </div>
65 </div>
66 <div class="itemizedlist">
67 <ul type="disc">
68 <li>
69 <a href="../api_reference/C/dbset_lk_exclusive.html" class="olink">DB-&gt;set_lk_exclusive()</a>
70 </li>
71 <li>
72 <a href="../api_reference/C/dbget_lk_exclusive.html" class="olink">DB-&gt;get_lk_exclusive()</a>
73 </li>
74 </ul>
75 </div>
76 </div>
77 </div>
78 <div class="navfooter">
79 <hr />
80 <table width="100%" summary="Navigation footer">
81 <tr>
82 <td width="40%" align="left"><a accesskey="p" href="upgrade_11gr2_53_conn_status.html">Prev</a> </td>
83 <td width="20%" align="center">
84 <a accesskey="u" href="upgrade_53_toc.html">Up</a>
85 </td>
86 <td width="40%" align="right"> <a accesskey="n" href="upgrade_11gr2_53_heap_regionsize.html">Next</a></td>
87 </tr>
88 <tr>
89 <td width="40%" align="left" valign="top">Replication Connection Status in the Java API </td>
90 <td width="20%" align="center">
91 <a accesskey="h" href="index.html">Home</a>
92 </td>
93 <td width="40%" align="right" valign="top"> Configure the Region Size of Heap Databases</td>
94 </tr>
95 </table>
96 </div>
97 </body>
98 </html>