1<!--$Id: elect.so,v 1.1 2006/03/15 19:39:19 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB Reference Guide: Release 4.5: DB_ENV-&gt;rep_elect</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<table width="100%"><tr valign=top>
12<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></b></td>
13<td align=right><a href="/upgrade.4.5/alive.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/upgrade.4.5/rep_set.html"><img src="/images/next.gif" alt="Next"></a>
14</td></tr></table>
15<p align=center><b>Release 4.5: DB_ENV-&gt;rep_elect</b></p>
16<p>Two of the historic arguments for the <a href="/api_c/rep_elect.html">DB_ENV-&gt;rep_elect</a> method have been moved
17from the interface to separate methods in order to make them available
18within the new replication manager framework.</p>
19<p>The <b>priority</b> parameter should now be explicitly set using the
20<a href="/api_c/rep_priority.html">DB_ENV-&gt;rep_set_priority</a> method.  To upgrade existing replication applications
21to the Berkeley DB 4.5 <a href="/api_c/rep_elect.html">DB_ENV-&gt;rep_elect</a> interface, it may be simplest to
22insert a call to <a href="/api_c/rep_priority.html">DB_ENV-&gt;rep_set_priority</a> immediately before the
23existing call to <a href="/api_c/rep_elect.html">DB_ENV-&gt;rep_elect</a>.  Alternatively, it may make more
24sense to add a single call to <a href="/api_c/rep_priority.html">DB_ENV-&gt;rep_set_priority</a> during database
25environment configuration.</p>
26<p>The <b>timeout</b> parameter should now be explicitly set using the
27<a href="/api_c/rep_timeout.html">DB_ENV-&gt;rep_set_timeout</a> method.  To upgrade existing replication applications
28to the Berkeley DB 4.5 <a href="/api_c/rep_elect.html">DB_ENV-&gt;rep_elect</a> interface, it may be simplest to
29insert a call to <a href="/api_c/rep_timeout.html">DB_ENV-&gt;rep_set_timeout</a> immediately before the existing
30call to <a href="/api_c/rep_elect.html">DB_ENV-&gt;rep_elect</a>.  Alternatively, it may make more sense to add
31a single call to <a href="/api_c/rep_timeout.html">DB_ENV-&gt;rep_set_timeout</a> during database environment
32configuration.</p>
33<table width="100%"><tr><td><br></td><td align=right><a href="/upgrade.4.5/alive.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/upgrade.4.5/rep_set.html"><img src="/images/next.gif" alt="Next"></a>
34</td></tr></table>
35<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
36</body>
37</html>
38