Debian Codegraph @

docs/upgrading/upgrade_4_5_elect.html

raw
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_ENV-&gt;rep_elect</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_5_toc.html" title="Chapter 5. Upgrading Berkeley DB 4.4 applications to Berkeley DB 4.5" />
11 <link rel="prev" href="upgrade_4_5_alive.html" title="DB-&gt;set_isalive" />
12 <link rel="next" href="upgrade_4_5_rep_set.html" title="Replication method naming" />
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_ENV-&gt;rep_elect</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="upgrade_4_5_alive.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. Upgrading Berkeley DB 4.4 applications to Berkeley DB 4.5</th>
26 <td width="20%" align="right"> <a accesskey="n" href="upgrade_4_5_rep_set.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_5_elect"></a>DB_ENV-&gt;rep_elect</h2>
36 </div>
37 </div>
38 </div>
39 <p>Two of the historic arguments for the <a href="../api_reference/C/repelect.html" class="olink">DB_ENV-&gt;rep_elect()</a> method have been moved
40 from the interface to separate methods in order to make them available
41 within the new replication manager framework.</p>
42 <p>The <span class="bold"><strong>priority</strong></span> parameter should now be explicitly set using the
43 <a href="../api_reference/C/reppriority.html" class="olink">DB_ENV-&gt;rep_set_priority()</a> method. To upgrade existing replication applications
44 to the Berkeley DB 4.5 <a href="../api_reference/C/repelect.html" class="olink">DB_ENV-&gt;rep_elect()</a> interface, it may be simplest to
45 insert a call to <a href="../api_reference/C/reppriority.html" class="olink">DB_ENV-&gt;rep_set_priority()</a> immediately before the
46 existing call to <a href="../api_reference/C/repelect.html" class="olink">DB_ENV-&gt;rep_elect()</a>. Alternatively, it may make more
47 sense to add a single call to <a href="../api_reference/C/reppriority.html" class="olink">DB_ENV-&gt;rep_set_priority()</a> during database
48 environment configuration.</p>
49 <p>The <span class="bold"><strong>timeout</strong></span> parameter should now be explicitly set using the
50 <a href="../api_reference/C/repset_timeout.html" class="olink">DB_ENV-&gt;rep_set_timeout()</a> method. To upgrade existing replication applications
51 to the Berkeley DB 4.5 <a href="../api_reference/C/repelect.html" class="olink">DB_ENV-&gt;rep_elect()</a> interface, it may be simplest to
52 insert a call to <a href="../api_reference/C/repset_timeout.html" class="olink">DB_ENV-&gt;rep_set_timeout()</a> immediately before the existing
53 call to <a href="../api_reference/C/repelect.html" class="olink">DB_ENV-&gt;rep_elect()</a>. Alternatively, it may make more sense to add
54 a single call to <a href="../api_reference/C/repset_timeout.html" class="olink">DB_ENV-&gt;rep_set_timeout()</a> during database environment
55 configuration.</p>
56 </div>
57 <div class="navfooter">
58 <hr />
59 <table width="100%" summary="Navigation footer">
60 <tr>
61 <td width="40%" align="left"><a accesskey="p" href="upgrade_4_5_alive.html">Prev</a> </td>
62 <td width="20%" align="center">
63 <a accesskey="u" href="upgrade_4_5_toc.html">Up</a>
64 </td>
65 <td width="40%" align="right"> <a accesskey="n" href="upgrade_4_5_rep_set.html">Next</a></td>
66 </tr>
67 <tr>
68 <td width="40%" align="left" valign="top">DB-&gt;set_isalive </td>
69 <td width="20%" align="center">
70 <a accesskey="h" href="index.html">Home</a>
71 </td>
72 <td width="40%" align="right" valign="top"> Replication method naming</td>
73 </tr>
74 </table>
75 </div>
76 </body>
77 </html>