1<!--$Id: set_tx_recover.so,v 1.12 2002/02/23 20:05:28 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 3.1: DB_ENV->set_tx_recover</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.3.1/config.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.3.1/set_feedback.html"><img src="../../images/next.gif" alt="Next"></a> 14</td></tr></table> 15<p align=center><b>Release 3.1: DB_ENV->set_tx_recover</b></p> 16<p>The redo parameter of the function passed to DB_ENV->set_tx_recover 17used to be an integer set to any one of a number of #defined values. In 18the 3.1 release of Berkeley DB, the redo parameter has been replaced by the op 19parameter which is an enumerated type of type db_recops.</p> 20<p>If your application calls DB_ENV->set_tx_recover, then find the 21function referred to by the call. Replace the flag values in that 22function as follows:</p> 23<table border=1 align=center> 24<tr><th>Previous flag</th><th>Berkeley DB 3.1 version flag</th></tr> 25<tr><td>TXN_BACKWARD_ROLL</td><td>DB_TXN_BACKWARD_ROLL</td></tr> 26<tr><td>TXN_FORWARD_ROLL</td><td>DB_TXN_FORWARD_ROLL</td></tr> 27<tr><td>TXN_OPENFILES</td><td>DB_TXN_OPENFILES</td></tr> 28<tr><td>TXN_REDO</td><td>DB_TXN_FORWARD_ROLL</td></tr> 29<tr><td>TXN_UNDO</td><td>DB_TXN_ABORT</td></tr> 30</table> 31<table width="100%"><tr><td><br></td><td align=right><a href="../upgrade.3.1/config.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.3.1/set_feedback.html"><img src="../../images/next.gif" alt="Next"></a> 32</td></tr></table> 33<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 34</body> 35</html> 36