mirror of
https://github.com/berkeleydb/libdb.git
synced 2024-11-16 09:06:25 +00:00
98 lines
4.3 KiB
HTML
98 lines
4.3 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||
<title>Exclusive Database Handles</title>
|
||
<link rel="stylesheet" href="gettingStarted.css" type="text/css" />
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
|
||
<link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
|
||
<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" />
|
||
<link rel="prev" href="upgrade_11gr2_53_conn_status.html" title="Replication Connection Status in the Java API" />
|
||
<link rel="next" href="upgrade_11gr2_53_heap_regionsize.html" title="Configure the Region Size of Heap Databases" />
|
||
</head>
|
||
<body>
|
||
<div xmlns="" class="navheader">
|
||
<div class="libver">
|
||
<p>Library Version 11.2.5.3</p>
|
||
</div>
|
||
<table width="100%" summary="Navigation header">
|
||
<tr>
|
||
<th colspan="3" align="center">Exclusive Database Handles </th>
|
||
</tr>
|
||
<tr>
|
||
<td width="20%" align="left"><a accesskey="p" href="upgrade_11gr2_53_conn_status.html">Prev</a> </td>
|
||
<th width="60%" align="center">Chapter 9.
|
||
Upgrading Berkeley DB 11.2.5.2 applications to Berkeley DB 11.2.5.3
|
||
</th>
|
||
<td width="20%" align="right"> <a accesskey="n" href="upgrade_11gr2_53_heap_regionsize.html">Next</a></td>
|
||
</tr>
|
||
</table>
|
||
<hr />
|
||
</div>
|
||
<div class="sect1" lang="en" xml:lang="en">
|
||
<div class="titlepage">
|
||
<div>
|
||
<div>
|
||
<h2 class="title" style="clear: both"><a id="upgrade_11gr2_53_excl"></a>Exclusive Database Handles </h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="toc">
|
||
<dl>
|
||
<dt>
|
||
<span class="sect2">
|
||
<a href="upgrade_11gr2_53_excl.html#idp567208">New Functions</a>
|
||
</span>
|
||
</dt>
|
||
</dl>
|
||
</div>
|
||
<p>
|
||
Database handles can now be configured to allow exclusive access to the
|
||
database. To enable exclusive access, call <a href="../api_reference/C/dbset_lk_exclusive.html" class="olink">DB->set_lk_exclusive()</a> before
|
||
calling <a href="../api_reference/C/dbopen.html" class="olink">DB->open()</a>. Set nowait_onoff to non-zero to have <a href="../api_reference/C/dbopen.html" class="olink">DB->open()</a> return
|
||
immediately, with the error <code class="literal">DB_LOCK_NOTGRANTED</code> if
|
||
it cannot immediately get exclusive access to the database, and to
|
||
0 to have <a href="../api_reference/C/dbopen.html" class="olink">DB->open()</a> block until it can gain exclusive access.
|
||
</p>
|
||
<div class="sect2" lang="en" xml:lang="en">
|
||
<div class="titlepage">
|
||
<div>
|
||
<div>
|
||
<h3 class="title"><a id="idp567208"></a>New Functions</h3>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="itemizedlist">
|
||
<ul type="disc">
|
||
<li>
|
||
<a href="../api_reference/C/dbset_lk_exclusive.html" class="olink">DB->set_lk_exclusive()</a>
|
||
</li>
|
||
<li>
|
||
<a href="../api_reference/C/dbget_lk_exclusive.html" class="olink">DB->get_lk_exclusive()</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="navfooter">
|
||
<hr />
|
||
<table width="100%" summary="Navigation footer">
|
||
<tr>
|
||
<td width="40%" align="left"><a accesskey="p" href="upgrade_11gr2_53_conn_status.html">Prev</a> </td>
|
||
<td width="20%" align="center">
|
||
<a accesskey="u" href="upgrade_53_toc.html">Up</a>
|
||
</td>
|
||
<td width="40%" align="right"> <a accesskey="n" href="upgrade_11gr2_53_heap_regionsize.html">Next</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="40%" align="left" valign="top">Replication Connection Status in the Java API </td>
|
||
<td width="20%" align="center">
|
||
<a accesskey="h" href="index.html">Home</a>
|
||
</td>
|
||
<td width="40%" align="right" valign="top"> Configure the Region Size of Heap Databases</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</body>
|
||
</html>
|