| 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->set_paniccall</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_memp.html" title="Memory Pool API" /> |
| 12 |
<link rel="next" href="upgrade_4_5_pagesize.html" title="DB->set_pagesize" /> |
| 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->set_paniccall</th> |
| 22 |
</tr> |
| 23 |
<tr> |
| 24 |
<td width="20%" align="left"><a accesskey="p" href="upgrade_4_5_memp.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_pagesize.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_paniccall"></a>DB_ENV->set_paniccall</h2> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
<p>In previous Berkeley DB releases, the DB_ENV->set_paniccall and |
| 40 |
DB->set_paniccall methods were used to register a callback |
| 41 |
function, called if the database environment failed. In the 4.5 |
| 42 |
release, this functionality has been replaced by a general-purpose event |
| 43 |
notification callback function, set with the |
| 44 |
<a href="../api_reference/C/envevent_notify.html" class="olink">DB_ENV->set_event_notify()</a> method. Applications should be updated to |
| 45 |
replace DB_ENV->set_paniccall and DB->set_paniccall calls with |
| 46 |
a call to <a href="../api_reference/C/envevent_notify.html" class="olink">DB_ENV->set_event_notify()</a>. This also requires the |
| 47 |
callback function itself change, as the callback signatures are |
| 48 |
different.</p> |
| 49 |
<p>The DB_ENV->set_paniccall and DB->set_paniccall calls are |
| 50 |
expected to be removed in a future release of Berkeley DB.</p> |
| 51 |
</div> |
| 52 |
<div class="navfooter"> |
| 53 |
<hr /> |
| 54 |
<table width="100%" summary="Navigation footer"> |
| 55 |
<tr> |
| 56 |
<td width="40%" align="left"><a accesskey="p" href="upgrade_4_5_memp.html">Prev</a> </td> |
| 57 |
<td width="20%" align="center"> |
| 58 |
<a accesskey="u" href="upgrade_4_5_toc.html">Up</a> |
| 59 |
</td> |
| 60 |
<td width="40%" align="right"> <a accesskey="n" href="upgrade_4_5_pagesize.html">Next</a></td> |
| 61 |
</tr> |
| 62 |
<tr> |
| 63 |
<td width="40%" align="left" valign="top">Memory Pool API </td> |
| 64 |
<td width="20%" align="center"> |
| 65 |
<a accesskey="h" href="index.html">Home</a> |
| 66 |
</td> |
| 67 |
<td width="40%" align="right" valign="top"> DB->set_pagesize</td> |
| 68 |
</tr> |
| 69 |
</table> |
| 70 |
</div> |
| 71 |
</body> |
| 72 |
</html> |