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">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DB_ENV->set_tx_recover</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_3_1_toc.html" title="Chapter 13. Upgrading Berkeley DB 3.0 applications to Berkeley DB 3.1" />
11 <link rel="prev" href="upgrade_3_1_config.html" title="DB_ENV->open, DB_ENV->remove" />
12 <link rel="next" href="upgrade_3_1_set_feedback.html" title="DB_ENV->set_feedback, DB->set_feedback" />
15 <div xmlns="" class="navheader">
17 <p>Library Version 11.2.5.3</p>
19 <table width="100%" summary="Navigation header">
21 <th colspan="3" align="center">DB_ENV->set_tx_recover</th>
24 <td width="20%" align="left"><a accesskey="p" href="upgrade_3_1_config.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 13. Upgrading Berkeley DB 3.0 applications to Berkeley DB 3.1</th>
26 <td width="20%" align="right"> <a accesskey="n" href="upgrade_3_1_set_feedback.html">Next</a></td>
31 <div class="sect1" lang="en" xml:lang="en">
32 <div class="titlepage">
35 <h2 class="title" style="clear: both"><a id="upgrade_3_1_set_tx_recover"></a>DB_ENV->set_tx_recover</h2>
39 <p>The redo parameter of the function passed to DB_ENV->set_tx_recover
40 used to be an integer set to any one of a number of #defined values. In
41 the 3.1 release of Berkeley DB, the redo parameter has been replaced by the op
42 parameter which is an enumerated type of type db_recops.</p>
43 <p>If your application calls DB_ENV->set_tx_recover, then find the
44 function referred to by the call. Replace the flag values in that
45 function as follows:</p>
46 <div class="informaltable">
47 <table border="1" width="80%">
54 <th>Previous flag</th>
55 <th>Berkeley DB 3.1 version flag</th>
60 <td>TXN_BACKWARD_ROLL</td>
61 <td>DB_TXN_BACKWARD_ROLL</td>
64 <td>TXN_FORWARD_ROLL</td>
65 <td>DB_TXN_FORWARD_ROLL</td>
68 <td>TXN_OPENFILES</td>
69 <td>DB_TXN_OPENFILES</td>
73 <td>DB_TXN_FORWARD_ROLL</td>
83 <div class="navfooter">
85 <table width="100%" summary="Navigation footer">
87 <td width="40%" align="left"><a accesskey="p" href="upgrade_3_1_config.html">Prev</a> </td>
88 <td width="20%" align="center">
89 <a accesskey="u" href="upgrade_3_1_toc.html">Up</a>
91 <td width="40%" align="right"> <a accesskey="n" href="upgrade_3_1_set_feedback.html">Next</a></td>
94 <td width="40%" align="left" valign="top">DB_ENV->open, DB_ENV->remove </td>
95 <td width="20%" align="center">
96 <a accesskey="h" href="index.html">Home</a>
98 <td width="40%" align="right" valign="top"> DB_ENV->set_feedback, DB->set_feedback</td>