Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / docs / upgrading / upgrade_4_3_repl.html
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>Replication</title>
7     <link rel="stylesheet" href="gettingStarted.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 Upgrade Guide" />
10     <link rel="up" href="upgrade_4_3_toc.html" title="Chapter 7. Upgrading Berkeley DB 4.2 applications to Berkeley DB 4.3" />
11     <link rel="prev" href="upgrade_4_3_enomem.html" title="ENOMEM and DbMemoryException" />
12     <link rel="next" href="upgrade_4_3_rtc.html" title="Run-time configuration" />
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">Replication</th>
22         </tr>
23         <tr>
24           <td width="20%" align="left"><a accesskey="p" href="upgrade_4_3_enomem.html">Prev</a> </td>
25           <th width="60%" align="center">Chapter 7. Upgrading Berkeley DB 4.2 applications to Berkeley DB 4.3</th>
26           <td width="20%" align="right"> <a accesskey="n" href="upgrade_4_3_rtc.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="upgrade_4_3_repl"></a>Replication</h2>
36           </div>
37         </div>
38       </div>
39       <p>The 4.3 release removes support for logs-only replication clients.  Use
40 of the DB_REP_LOGSONLY flag to the <a href="../api_reference/C/repstart.html" class="olink">DB_ENV-&gt;rep_start()</a> should be replaced
41 with the <a href="../api_reference/C/repmgrstart.html#repmgrstart_DB_REP_CLIENT" class="olink">DB_REP_CLIENT</a> flag.</p>
42       <p>The 4.3 release adds two new arguments to the <a href="../api_reference/C/repelect.html" class="olink">DB_ENV-&gt;rep_elect()</a> method,
43 <span class="bold"><strong>nvotes</strong></span> and <span class="bold"><strong>flags</strong></span>.  The <span class="bold"><strong>nvotes</strong></span> argument sets the
44 required number of replication group members that must participate in
45 an election in order for a master to be declared.  For backward
46 compatibility, set the <span class="bold"><strong>nvotes</strong></span> argument to 0.  The flags argument
47 is currently unused and should be set to 0.  See <a href="../api_reference/C/repelect.html" class="olink">DB_ENV-&gt;rep_elect()</a> method or
48 "Replication Elections" for more information.</p>
49       <p>In the 4.3 release it is no longer necessary to do a database
50 environment hot backup to initialize a replication client.  All that is
51 needed now is for the client to join the replication group.  Berkeley DB will
52 perform an internal backup from the master to the client automatically
53 and will run recovery on the client to bring it up to date with the
54 master.</p>
55     </div>
56     <div class="navfooter">
57       <hr />
58       <table width="100%" summary="Navigation footer">
59         <tr>
60           <td width="40%" align="left"><a accesskey="p" href="upgrade_4_3_enomem.html">Prev</a> </td>
61           <td width="20%" align="center">
62             <a accesskey="u" href="upgrade_4_3_toc.html">Up</a>
63           </td>
64           <td width="40%" align="right"> <a accesskey="n" href="upgrade_4_3_rtc.html">Next</a></td>
65         </tr>
66         <tr>
67           <td width="40%" align="left" valign="top">ENOMEM and DbMemoryException </td>
68           <td width="20%" align="center">
69             <a accesskey="h" href="index.html">Home</a>
70           </td>
71           <td width="40%" align="right" valign="top"> Run-time configuration</td>
72         </tr>
73       </table>
74     </div>
75   </body>
76 </html>