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