Debian Codegraph @

docs/api_reference/CXX/mempsync.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>DbEnv::memp_sync()</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="memp.html" title="Chapter 9.  The DbMpoolFile Handle" />
11 <link rel="prev" href="mempstat_print.html" title="DbEnv::memp_stat_print()" />
12 <link rel="next" href="memptrickle.html" title="DbEnv::memp_trickle()" />
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">DbEnv::memp_sync()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mempstat_print.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 9. 
26 The DbMpoolFile Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="memptrickle.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="mempsync"></a>DbEnv::memp_sync()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::memp_sync(DbLsn *lsn);</pre>
45 <p>
46 The <code class="methodname">DbEnv::memp_sync()</code> method flushes modified pages in the cache to
47 their backing files.
48 </p>
49 <p>
50 Pages in the cache that cannot be immediately written back to disk (for
51 example, pages that are currently in use by another thread of control)
52 are waited for and written to disk as soon as it is possible to do so.
53 </p>
54 <p>
55 The <code class="methodname">DbEnv::memp_sync()</code> <span>
56
57 <span>
58 method either returns a non-zero error value or throws an
59 exception that encapsulates a non-zero error value on
60 failure, and returns 0 on success.
61 </span>
62 </span>
63 </p>
64 <div class="sect2" lang="en" xml:lang="en">
65 <div class="titlepage">
66 <div>
67 <div>
68 <h3 class="title"><a id="idp8768768"></a>Parameters</h3>
69 </div>
70 </div>
71 </div>
72 <div class="sect3" lang="en" xml:lang="en">
73 <div class="titlepage">
74 <div>
75 <div>
76 <h4 class="title"><a id="idp8678536"></a>lsn</h4>
77 </div>
78 </div>
79 </div>
80 <p>
81 The purpose of the <span class="bold"><strong>lsn</strong></span> parameter is
82 to enable a transaction manager to ensure, as part of a checkpoint,
83 that all pages modified by a certain time have been written to disk.
84 </p>
85 <p>
86 All modified pages with a a log sequence number
87 (<a class="link" href="lsn.html" title="Chapter 8.  The DbLsn Handle">DbLsn</a>) less than the <span class="bold"><strong>lsn</strong></span> parameter are written to disk. If
88 <span class="bold"><strong>lsn</strong></span> is NULL, all modified pages in
89 the cache are written to disk.
90 </p>
91 </div>
92 </div>
93 <div class="sect2" lang="en" xml:lang="en">
94 <div class="titlepage">
95 <div>
96 <div>
97 <h3 class="title"><a id="idp8762256"></a>Class</h3>
98 </div>
99 </div>
100 </div>
101 <p>
102 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>, <a class="link" href="memp.html" title="Chapter 9.  The DbMpoolFile Handle">DbMpoolFile</a>
103 </p>
104 </div>
105 <div class="sect2" lang="en" xml:lang="en">
106 <div class="titlepage">
107 <div>
108 <div>
109 <h3 class="title"><a id="idp8736920"></a>See Also</h3>
110 </div>
111 </div>
112 </div>
113 <p>
114 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>
115 </p>
116 </div>
117 </div>
118 <div class="navfooter">
119 <hr />
120 <table width="100%" summary="Navigation footer">
121 <tr>
122 <td width="40%" align="left"><a accesskey="p" href="mempstat_print.html">Prev</a> </td>
123 <td width="20%" align="center">
124 <a accesskey="u" href="memp.html">Up</a>
125 </td>
126 <td width="40%" align="right"> <a accesskey="n" href="memptrickle.html">Next</a></td>
127 </tr>
128 <tr>
129 <td width="40%" align="left" valign="top">DbEnv::memp_stat_print() </td>
130 <td width="20%" align="center">
131 <a accesskey="h" href="index.html">Home</a>
132 </td>
133 <td width="40%" align="right" valign="top"> DbEnv::memp_trickle()</td>
134 </tr>
135 </table>
136 </div>
137 </body>
138 </html>