2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB Reference Guide: Release 3.2: DB_ENV->set_flags</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<table width="100%"><tr valign=top>
13
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td>
14
<td align=right><a href="../../ref/upgrade.3.2/intro.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.2/callback.html"><img src="../../images/next.gif" alt="Next"></a>
17
<h1 align=center>Release 3.2: DB_ENV->set_flags</h1>
18
<p>A new method has been added to the Berkeley DB environment handle,
19
<a href="../../api_c/env_set_flags.html">DB_ENV->set_flags</a>. This interface currently takes three flags:
20
<a href="../../api_c/env_set_flags.html#DB_CDB_ALLDB">DB_CDB_ALLDB</a>, <a href="../../api_c/env_set_flags.html#DB_NOMMAP">DB_NOMMAP</a> and <a href="../../api_c/env_set_flags.html#DB_TXN_NOSYNC">DB_TXN_NOSYNC</a>. The
21
first of these flags, <a href="../../api_c/env_set_flags.html#DB_CDB_ALLDB">DB_CDB_ALLDB</a>, provides new functionality,
22
allowing Berkeley DB Concurrent Data Store applications to do locking across multiple databases.
23
<p>The other two flags, <a href="../../api_c/env_set_flags.html#DB_NOMMAP">DB_NOMMAP</a> and <a href="../../api_c/env_set_flags.html#DB_TXN_NOSYNC">DB_TXN_NOSYNC</a>, were
24
specified to the <a href="../../api_c/env_open.html">DB_ENV->open</a> method in previous releases. In
25
the 3.2 release, they have been moved to the <a href="../../api_c/env_set_flags.html">DB_ENV->set_flags</a> method
26
because this allows the database environment's value to be toggled
27
during the life of the application as well as because it is a more
28
appropriate place for them. Applications specifying either the
29
<a href="../../api_c/env_set_flags.html#DB_NOMMAP">DB_NOMMAP</a> or <a href="../../api_c/env_set_flags.html#DB_TXN_NOSYNC">DB_TXN_NOSYNC</a> flags to the
30
<a href="../../api_c/env_open.html">DB_ENV->open</a> method should replace those flags with calls to the
31
<a href="../../api_c/env_set_flags.html">DB_ENV->set_flags</a> method.
32
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/upgrade.3.2/intro.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.2/callback.html"><img src="../../images/next.gif" alt="Next"></a>
34
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>