Debian Codegraph @

docs/api_reference/CXX/mempset_lsn_offset.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>DbMpoolFile::set_lsn_offset()</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="mempset_ftype.html" title="DbMpoolFile::set_ftype()" />
12 <link rel="next" href="mempset_maxsize.html" title="DbMpoolFile::set_maxsize()" />
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">DbMpoolFile::set_lsn_offset()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mempset_ftype.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="mempset_maxsize.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="mempset_lsn_offset"></a>DbMpoolFile::set_lsn_offset()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int DbMpoolFile::set_lsn_offset(int32_t lsn_offset); </pre>
44 <p>
45 The <code class="methodname">DbMpoolFile::set_lsn_offset()</code> method specifies the zero-based
46 byte offset of a log sequence number
47 (<a class="link" href="lsn.html" title="Chapter 8.  The DbLsn Handle">DbLsn</a>) on the file's pages, for
48 the purposes of page-flushing as part of transaction checkpoint. (See
49 the <a class="xref" href="mempsync.html" title="DbEnv::memp_sync()">DbEnv::memp_sync()</a>
50 documentation for more information.)
51 </p>
52 <p>
53 The <code class="methodname">DbMpoolFile::set_lsn_offset()</code> method configures a file in the
54 cache, not only operations performed using the specified
55 <a class="link" href="memp.html" title="Chapter 9.  The DbMpoolFile Handle">DbMpoolFile</a> handle.
56 </p>
57 <p>
58 The <code class="methodname">DbMpoolFile::set_lsn_offset()</code> method may not be called after the
59 <a class="xref" href="mempfopen.html" title="DbMpoolFile::open()">DbMpoolFile::open()</a>
60 method is called. If the file is already open in the cache when
61 <a class="xref" href="mempfopen.html" title="DbMpoolFile::open()">DbMpoolFile::open()</a> is
62 called, the information specified to <code class="methodname">DbMpoolFile::set_lsn_offset()</code>
63 must be consistent with the existing file or an error will be returned.
64 </p>
65 <p>
66 The <code class="methodname">DbMpoolFile::set_lsn_offset()</code> <span>
67
68 <span>
69 method either returns a non-zero error value or throws an
70 exception that encapsulates a non-zero error value on
71 failure, and returns 0 on success.
72 </span>
73 </span>
74 </p>
75 <div class="sect2" lang="en" xml:lang="en">
76 <div class="titlepage">
77 <div>
78 <div>
79 <h3 class="title"><a id="idp9077312"></a>Parameters</h3>
80 </div>
81 </div>
82 </div>
83 <div class="sect3" lang="en" xml:lang="en">
84 <div class="titlepage">
85 <div>
86 <div>
87 <h4 class="title"><a id="idp9076664"></a>lsn_offset</h4>
88 </div>
89 </div>
90 </div>
91 <p>
92 The <span class="bold"><strong>lsn_offset</strong></span> parameter is the
93 zero-based byte offset of the log sequence number on the file's pages.
94 </p>
95 </div>
96 </div>
97 <div class="sect2" lang="en" xml:lang="en">
98 <div class="titlepage">
99 <div>
100 <div>
101 <h3 class="title"><a id="idp9052104"></a>Class</h3>
102 </div>
103 </div>
104 </div>
105 <p>
106 <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>
107 </p>
108 </div>
109 <div class="sect2" lang="en" xml:lang="en">
110 <div class="titlepage">
111 <div>
112 <div>
113 <h3 class="title"><a id="idp9062832"></a>See Also</h3>
114 </div>
115 </div>
116 </div>
117 <p>
118 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>
119 </p>
120 </div>
121 </div>
122 <div class="navfooter">
123 <hr />
124 <table width="100%" summary="Navigation footer">
125 <tr>
126 <td width="40%" align="left"><a accesskey="p" href="mempset_ftype.html">Prev</a> </td>
127 <td width="20%" align="center">
128 <a accesskey="u" href="memp.html">Up</a>
129 </td>
130 <td width="40%" align="right"> <a accesskey="n" href="mempset_maxsize.html">Next</a></td>
131 </tr>
132 <tr>
133 <td width="40%" align="left" valign="top">DbMpoolFile::set_ftype() </td>
134 <td width="20%" align="center">
135 <a accesskey="h" href="index.html">Home</a>
136 </td>
137 <td width="40%" align="right" valign="top"> DbMpoolFile::set_maxsize()</td>
138 </tr>
139 </table>
140 </div>
141 </body>
142 </html>