Debian Codegraph @

docs/api_reference/CXX/set_flags_parameter.html

raw symbols SCIP
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_flags</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_data_len_parameter.html" title="set_data_len" />
12 <link rel="next" href="set_intermediate_dir_mode_parameter.html" title="set_intermediate_dir_mode" />
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_flags</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="set_data_len_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_intermediate_dir_mode_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_flags_parameter"></a>set_flags</h2>
36 </div>
37 </div>
38 </div>
39 <p>
40 Configures a database environment.
41 </p>
42 <p>
43 The syntax of the entry in the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file is a single
44 line with the string <code class="literal">set_flags</code>, one or
45 more whitespace characters, the method flag parameter as a
46 string, optionally one or more whitespace characters, and
47 the string <code class="literal">on</code> or <code class="literal">off</code>.
48 If the optional string is omitted, the default is
49 <code class="literal">on</code>; for example,
50 <code class="literal">set_flags DB_TXN_NOSYNC</code> or
51 <code class="literal">set_flags DB_TXN_NOSYNC on</code>. Because the
52 DB_CONFIG file is read when the database environment is
53 opened, it will silently overrule configuration done before
54 that time.
55 </p>
56 <p>
57 The method flag parameters are as follows:
58 </p>
59 <div class="itemizedlist">
60 <ul type="disc">
61 <li>
62 DB_AUTO_COMMIT
63 <p>
64 Enables/disables to automatically enclose those DB handle operations for which no explicit transaction handle was specified, and
65 which modify databases in the database environment, within a transaction.
66 </p></li>
67 <li>
68 DB_CDB_ALLDB
69 <p>Enables/disables Berkeley DB Concurrent Data Store applications to perform locking on an
70 environment-wide basis rather than on a per-database basis.</p></li>
71 <li>
72 DB_DIRECT_DB
73 <p>Enables/disables turning off system buffering of Berkeley DB database files to avoid double caching.</p></li>
74 <li>
75 DB_DSYNC_DB
76 <p>Enables/disables configuring Berkeley DB to flush database writes to the backing disk before returning
77 from the write system call, rather than flushing database writes explicitly in a separate
78 system call, as necessary.</p></li>
79 <li>
80 DB_MULTIVERSION
81 <p>Enables/disables all databases in the environment from being opened as if DB_MULTIVERSION is passed to
82 the DB-&gt;open method. This flag will be ignored for queue databases for which
83 DB_MULTIVERSION is not supported.</p></li>
84 <li>
85 DB_NOMMAP
86 <p>Enables/disables Berkeley DB from copying read-only database files into the local cache instead of
87 potentially mapping them into process memory.</p></li>
88 <li>
89 DB_REGION_INIT
90 <p>Enables/disables Berkeley DB to page-fault shared regions into memory when initially creating or joining a Berkeley DB
91 environment. In addition, Berkeley DB will write the shared regions when creating an
92 environment, forcing the underlying virtual memory and filesystems to instantiate both
93 the necessary memory and the necessary disk space.</p></li>
94 <li>
95 DB_TIME_NOTGRANTED
96 <p>Enables/disables those database calls timing out based on lock or transaction timeout values to return
97 DB_LOCK_NOTGRANTED instead of DB_LOCK_DEADLOCK. This allows applications to
98 distinguish between operations which have deadlocked and operations which have exceeded
99 their time limits.</p></li>
100 <li>
101 DB_TXN_NOSYNC
102 <p>Enables/disables Berkeley DB to not write or synchronously flush the log on transaction commit.</p></li>
103 <li>
104 DB_TXN_NOWAIT
105 <p>Enables/disables the operation to return DB_LOCK_DEADLOCK if a lock is unavailable for any Berkeley DB operation performed in the context of a
106 transaction.</p></li>
107 <li>
108 DB_TXN_SNAPSHOT
109 <p>Enables/disables all transactions in the environment to be started as if DB_TXN_SNAPSHOT were
110 passed to the DB_ENV-&gt;txn_begin method, and all non-transactional cursors
111 to be opened as if DB_TXN_SNAPSHOT were passed to the DB-&gt;cursor method.</p></li>
112 <li>
113 DB_TXN_WRITE_NOSYNC
114 <p>Enables/disables Berkeley DB to write, but not synchronously flush, the log on transaction
115 commit.</p></li>
116 <li>
117 DB_YIELDCPU
118 <p>Enables/disables Berkeley DB to yield the processor immediately after each page or mutex acquisition.</p></li>
119 </ul>
120 </div>
121 <p> For more information, see <a class="xref" href="envset_flags.html" title="DbEnv::set_flags()">DbEnv::set_flags()</a>.</p>
122 </div>
123 <div class="navfooter">
124 <hr />
125 <table width="100%" summary="Navigation footer">
126 <tr>
127 <td width="40%" align="left"><a accesskey="p" href="set_data_len_parameter.html">Prev</a> </td>
128 <td width="20%" align="center">
129 <a accesskey="u" href="configuration_reference.html">Up</a>
130 </td>
131 <td width="40%" align="right"> <a accesskey="n" href="set_intermediate_dir_mode_parameter.html">Next</a></td>
132 </tr>
133 <tr>
134 <td width="40%" align="left" valign="top">set_data_len </td>
135 <td width="20%" align="center">
136 <a accesskey="h" href="index.html">Home</a>
137 </td>
138 <td width="40%" align="right" valign="top"> set_intermediate_dir_mode</td>
139 </tr>
140 </table>
141 </div>
142 </body>
143 </html>