2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB Reference Guide: Release 4.0: application-specific recovery</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<table width="100%"><tr valign=top>
13
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td>
14
<td align=right><a href="../../ref/upgrade.4.0/cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.4.0/disk.html"><img src="../../images/next.gif" alt="Next"></a>
17
<h1 align=center>Release 4.0: application-specific recovery</h1>
18
<p>If you have created your own logging and recovery routines, you may need
19
to upgrade them to the Berkeley DB 4.0 release.
20
<p>First, you should regenerate your logging, print, read and the other
21
automatically generated routines, using the dist/gen_rec.awk tool
22
included in the Berkeley DB distribution.
23
<p>Next, compare the template file code generated by the gen_rec.awk tool
24
against the code generated by the last release in which you built a
25
template file. Any changes in the templates should be incorporated into
26
the recovery routines you have written.
27
<p>Third, if your recovery functions refer to <a href="../../api_c/env_set_app_dispatch.html#DB_TXN_FORWARD_ROLL">DB_TXN_FORWARD_ROLL</a>
28
(that is, your code checks for that particular operation code), you
29
should replace it with DB_REDO(op) which compares the operation code to
30
both <a href="../../api_c/env_set_app_dispatch.html#DB_TXN_FORWARD_ROLL">DB_TXN_FORWARD_ROLL</a> and <a href="../../api_c/env_set_app_dispatch.html#DB_TXN_APPLY">DB_TXN_APPLY</a>.
31
(<a href="../../api_c/env_set_app_dispatch.html#DB_TXN_APPLY">DB_TXN_APPLY</a> is a potential value for the operation code as of
33
<p>Finally, if you have created your own logging and recovery routines, we
34
recommend that you contact Sleepycat support and ask us to review those
36
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/upgrade.4.0/cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.4.0/disk.html"><img src="../../images/next.gif" alt="Next"></a>
38
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>